Re: Automatic func_tanks in Counter Strike
Quote:
by default only attack to team terrorist #define KILL_ONLYT |
Re: Automatic func_tanks in Counter Strike
Quote:
I mean a. player is alive? check team? other? and I almost forgot.. add set_pdata_float(id,41,360.0,4) // For full rotation (360º) :P |
Re: Automatic func_tanks in Counter Strike
Quote:
Quote:
Btw, I think it's possible to set full rotation using key "yawrange". |
Re: Automatic func_tanks in Counter Strike
If you want to use the keyvalue, I guess you need to hook the spawn as pre.
Like Quim said, you can get a list of offsets there http://wiki.amxmodx.org/CFuncTank_(CS) ; and you can see the name is enough explicit to understand the keyvalue name related : Code:
void CFuncTank :: KeyValue( KeyValueData *pkvd ) |
Re: Automatic func_tanks in Counter Strike
This is awesome, good work. It's amazing how the CS modding capabilities are still growing after all these years.
|
Re: Automatic func_tanks in Counter Strike
Quote:
... m_yawRange is num 41 set_pdata_float(id,41,360.0,4) :wink: http://wiki.amxmodx.org/CFuncTank_%28CS%29 |
Re: Automatic func_tanks in Counter Strike
It's more safe to deal with keyvalues than offset since this one can change on update. So if you can, use keyvalues.
Also, if I'm right ( but I've seen some tutorials saying the same thing ), to have a full rotation you should write 180, 180 left + 180 right = 360. Like the Joropito's example : "yawrange 55" ; meaning the range is : 55 + 55 = 110. |
Re: Automatic func_tanks in Counter Strike
Quote:
This should work (not tested). PHP Code:
|
Re: Automatic func_tanks in Counter Strike
I have read somewhere after using DispatchKeyValue you must use DispatchSpawn but looking the HLSDK I don't find any reference to that, so I guess it should work right away. I'm going to try to see.
|
Re: Automatic func_tanks in Counter Strike
Quote:
|
All times are GMT -4. The time now is 23:17. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.