AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   event tied to throwing a nade (https://forums.alliedmods.net/showthread.php?t=25655)

SubStream 03-18-2006 00:05

event tied to throwing a nade
 
Does anyone know which message event is tied to throwing a grenade in CS if any?

VEN 03-18-2006 03:03

Code:
register_event("SendAudio", "event_nade_throw", "bc", "2=%!MRAD_FIREINHOLE")

Code:
public event_nade_throw() {     new id = read_data(1) // person who throwed the nade }

SubStream 03-18-2006 07:41

--Edited--

VEN 03-18-2006 08:56

what?

SubStream 03-18-2006 12:45

--Edited--

Twilight Suzuka 03-18-2006 12:51

Use engine or FM module, hook client_PreThink, check to see if their buttons have IN_ATTACK

SubStream 03-22-2006 09:34

--Edited--

akysiev 03-22-2006 11:26

Code:
public client_prethink(id) {     if (get_user_button(id) & IN_ATTACK)     {         // do what you want     } }


All times are GMT -4. The time now is 16:34.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.