Hello, im new in scripting and i cant find solution to my problem.
Im trying to hook something after useing medishot in csgo, however i can't find proper event to hook with. Looked through modevents,gameevents,serverevents and there is nothing about medishot. Tried to hook it to "weapon_fire" but it acts strange and sends multiple signals and code
Code:
public Event_WeaponFire(Event event, const String:name[], bool:dontBroadcast)
{
char weapon[64];
event.GetString("weapon", weapon, sizeof(weapon));
PrintToChatAll("Which weapon do we use - WEAPON: %s", weapon);
}
produce smth like this after just one use
Quote:
Which weapon do we use - WEAPON: weapon_healthshot
Which weapon do we use - WEAPON: weapon_healthshot
Which weapon do we use - WEAPON: weapon_healthshot
...
Which weapon do we use - WEAPON: weapon_healthshot
|
It does not even have to finish i can just start apply shot, interrupt it, and it still continues to send events like i wouldnt stop it.
How to hook to medishoot then (the succesfull use)??
Ps. btw not to add another thread, it is impossible to apply healthshoot if u have 100% hp. How can i bypass it?
Ps2. Sorry for my bad english, i hope its understandable