TR_Trace
Is their a way to do something like the follwing using a switch.
In source mod i know i had to set the values from 0 = false then 1 - 4 = true.. never done this with amx modx. so i have no idea how it works. PHP Code:
|
Re: TR_Trace
Not sure if this is what you're looking for
PHP Code:
PHP Code:
|
Re: TR_Trace
The switch each case 0-4 are different
How ever if i set the value to anything nothing happens. |
Re: TR_Trace
Have you tried the above?
|
Re: TR_Trace
If only you would say what the plugin is supposed to do :D
|
Re: TR_Trace
Quote:
// ******************* // // * Cvar Values * // // ******************* // // nhs_mode 1 Blocks bots from shooting humans in the head // // nhs_mode 2 Blocks all headshots (Humans and bots) // // nhs_mode 3 Headshots Only (blocks all other hitzones) // // nhs_mode 4 Redirects all hitzones to the head // //============================================= =================// For some reason.... ive been working on it. but the values of nhs_mode. is what seem like their not getting checked. |
Re: TR_Trace
Only mode 4 was ok.
If you redirect the shot return HAM_HANDLED. If you want to stop the function, use HAM_SUPERCEDE (or set the trace to HIT_GENERIC) PHP Code:
|
Re: TR_Trace
Thank you sure them damn returns are confusing.... But thank you.
|
| All times are GMT -4. The time now is 07:17. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.