Fakemeta for register_impulse?
What would be the Fakemeta equivalent for Engine's register_impulse ?
Or client_impulse (whichever works better). |
Re: Fakemeta for register_impulse?
Code:
// Impulse command issued:wink: |
Re: Fakemeta for register_impulse?
Hook CmdStart and check for UC_Impulse value via get_uc().
|
Re: Fakemeta for register_impulse?
So something like this?
Code:
|
Re: Fakemeta for register_impulse?
looks good :)
|
Re: Fakemeta for register_impulse?
Well that didn't quite work right. The FMRES_SUPERCEDE didn't stop the impulse value. So then I tried using forward_return(FMV_CELL, 0) and that still didn't work.
What finally DID work was setting the UC_Impulse value to 0 before returning with set_uc() Code:
|
Re: Fakemeta for register_impulse?
warning: loose indentation on line " if (impulse == 201) {"
-what i forgot? |
Re: Fakemeta for register_impulse?
Just fix your spacing so everything is lined up nicely.
|
Re: Fakemeta for register_impulse?
uhm..i see nothing wrong with spaces, mb u could show me, cuz i can't get this to work (cuz of "loose indentation")
|
Re: Fakemeta for register_impulse?
Post your code and I'll fix it.
|
| All times are GMT -4. The time now is 10:31. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.