Page 2 of 2

Re: How to shrink player/pawn

Posted: Wed Dec 23, 2009 10:21 pm
by Leo T_C_K
I think he means official stuff, not 227 at 227 it might not crash...

Re: How to shrink player/pawn

Posted: Sun Dec 27, 2009 7:24 pm
by Pravin
Const is only a compile-time construct and has no effect on whether the variable can or should be changed at run time. In other words, const is just there as a reminder to yourself, the coder, that you're "not supposed to" change its value directly. There's nothing special about Native other than it looks up the appropriate API function from its associated DLL with some offset. Last I checked, CollisionSize and CollisionHeight are not native, and I've set collision variables manually with set for several years now with no problems.

So yes, Shivaxi is valid in saying that a couple set commands would also work.

Re: How to shrink player/pawn

Posted: Tue Feb 16, 2010 2:36 pm
by Shivaxi
Const is only a compile-time construct and has no effect on whether the variable can or should be changed at run time. In other words, const is just there as a reminder to yourself, the coder, that you're "not supposed to" change its value directly. There's nothing special about Native other than it looks up the appropriate API function from its associated DLL with some offset. Last I checked, CollisionSize and CollisionHeight are not native, and I've set collision variables manually with set for several years now with no problems.

So yes, Shivaxi is valid in saying that a couple set commands would also work.
Gracias