Hatter
01-18-2010, 12:44 AM
There are a few ways to do this, this is the way I do it.
In physics.cpp there is a function void moveplayer(physent *pl, int moveres, bool local, int curtime).
Add the following line after the declaration of editfly.
if( pl->type==ENT_PLAYER && myF)editfly=1;
myF is just a boolean value I use to switch it ON and OFF.
Like I said, there are many ways to do this.... like unlocking editmode, setting your player1->state to CS_EDITMODE.
In physics.cpp there is a function void moveplayer(physent *pl, int moveres, bool local, int curtime).
Add the following line after the declaration of editfly.
if( pl->type==ENT_PLAYER && myF)editfly=1;
myF is just a boolean value I use to switch it ON and OFF.
Like I said, there are many ways to do this.... like unlocking editmode, setting your player1->state to CS_EDITMODE.