Raised This Month: $ Target: $400
 0% 

event tied to throwing a nade


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SubStream
Veteran Member
Join Date: Aug 2005
Location: USA
Old 03-18-2006 , 00:05   event tied to throwing a nade
Reply With Quote #1

Does anyone know which message event is tied to throwing a grenade in CS if any?
SubStream is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 03-18-2006 , 03:03  
Reply With Quote #2

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 }
VEN is offline
SubStream
Veteran Member
Join Date: Aug 2005
Location: USA
Old 03-18-2006 , 07:41  
Reply With Quote #3

--Edited--
SubStream is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 03-18-2006 , 08:56  
Reply With Quote #4

what?
VEN is offline
SubStream
Veteran Member
Join Date: Aug 2005
Location: USA
Old 03-18-2006 , 12:45  
Reply With Quote #5

--Edited--
SubStream is offline
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 03-18-2006 , 12:51  
Reply With Quote #6

Use engine or FM module, hook client_PreThink, check to see if their buttons have IN_ATTACK
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
SubStream
Veteran Member
Join Date: Aug 2005
Location: USA
Old 03-22-2006 , 09:34  
Reply With Quote #7

--Edited--
SubStream is offline
akysiev
Junior Member
Join Date: Mar 2006
Location: Earth
Old 03-22-2006 , 11:26  
Reply With Quote #8

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



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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