Automatic func_tanks in Counter Strike
1 Attachment(s)
Hello. I was searching for random functions to test with orpheu and got curious about func_tanks. They have auto aiming and shooting functionality but it doesn't work out of the box in CS so I tried to unlock it. The process is easy: we just have to make them think, have basic flags, and override its search for players because it's code inherited from halflife searches for players in PVS but it seems that they don't have one in CS :P.
The code: Code:
public plugin_precache() If you want to use this code in a zombie server or something like that just change the function OnFindClientInPVS and use on it an algorithm of yours to find a player to shoot at (like the closer zombie or whatever). Final notes: It almost could be made without orpheu because fakemeta also provides hooking for FindClientInPVS but I tested it and it didn't get called. Offsets for CFuncTank - http://wiki.amxmodx.org/CFuncTank_%28CS%29 FindClientInPVS can be also called in more situations for other entities (though is unusual) so you might want to add it's hook an extra check to see if it is a func_tank using it. Thanks to Capostrike for testing with me :D Example map: http://www.fpsbanana.com/maps/1080 |
Re: Automatic func_tanks in Counter Strike
Demonstration video: ...
http://www.xfire.com/video/29f364/ please see 2:25 minutes here useful example: PHP Code:
|
Re: Automatic func_tanks in Counter Strike
Good stuff, gonna test it.
|
Re: Automatic func_tanks in Counter Strike
set_pdata_float(id,41,360.0,4) // For full rotation (360º)
|
Re: Automatic func_tanks in Counter Strike
Caostrike, you example they will only shoot people with the last index in the Radio.
You understand me? |
Re: Automatic func_tanks in Counter Strike
It works using fakemeNta too
(I'm using random 1-32 because I'm too lazy to make it better :P) PHP Code:
|
Re: Automatic func_tanks in Counter Strike
But have you tested? When I tested, FM_FindClientInPVS didn't get called.
|
Re: Automatic func_tanks in Counter Strike
Yes, I have tested.
Maybe you miss using forward_return or you use findentityinpvs instead of clientinpvs, I don't know but it's working. |
Re: Automatic func_tanks in Counter Strike
Quote:
|
Re: Automatic func_tanks in Counter Strike
Here's the key name/values used for func_tank
(cs_rats2_final example values) Code:
model *174 |
All times are GMT -4. The time now is 17:39. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.