PDA

View Full Version : player handedness


elffum
24th Nov 2001, 07:46 PM
anyone know where the players handedness is stored? can't seem to find it anywhere...

Raeled
24th Nov 2001, 09:22 PM
in playerpawn

var travel globalconfig float Handedness;

elffum
24th Nov 2001, 09:34 PM
thanks, didn't see it cos i was looking for Hand, like in the weapon code... doh!

TaoPaiPai
24th Nov 2001, 09:38 PM
copied from the playrpawn class

01994 exec function SetHand( string S )
01995 {
01996 ChangeSetHand(S);
01997 SaveConfig();
01998 }
01999
02000 function ChangeSetHand( string S )
02001 {
02002 if ( S ~= "Left" )
02003 Handedness = 1;
02004 else if ( S~= "Right" )
02005 Handedness = -1;
02006 else if ( S ~= "Center" )
02007 Handedness = 0;
02008 else if ( S ~= "Hidden" )
02009 Handedness = 2;
02010 ServerSetHandedness(Handedness);
02011 }


the numbers are from Undox :)