Raised This Month: $51 Target: $400
 12% 

[FAQ/Tutorial] CS Bomb Scripting


Post New Thread Reply   
 
Thread Tools Display Modes
BigNEO
Member
Join Date: Sep 2006
Old 10-29-2008 , 14:10   Re: [FAQ/Tutorial] CS Bomb Scripting
Reply With Quote #41

I was directed to this thread to learn how to link a planted bomb to the VOX function.

I read the tutorial, but I didn't see anything that links VOX with a bombplant.

Did I miss something?

Last edited by BigNEO; 10-29-2008 at 14:12.
BigNEO is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 10-31-2008 , 11:53   Re: [FAQ/Tutorial] CS Bomb Scripting
Reply With Quote #42

What do you mean? Do you want to emit some sound by a bomb entity or what?
VEN is offline
BigNEO
Member
Join Date: Sep 2006
Old 11-02-2008 , 19:03   Re: [FAQ/Tutorial] CS Bomb Scripting
Reply With Quote #43

What I'd like to have happen is when the bomb is planted, the VOX speech ini file is triggered and certain sentences are spoken from the speech.ini file.

Do you know how to do that?
__________________
Clan [DPS] CS 1.6 server w/GG option

72.51.60.122:27015

www.DPS-CLAN.NING.com
BigNEO is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 11-03-2008 , 02:43   Re: [FAQ/Tutorial] CS Bomb Scripting
Reply With Quote #44

Just execute something like client_cmd(0, "spk ^"vox/hello^") on bomb plant event (see the 1st post of this thread for bomb events and more).
VEN is offline
BigNEO
Member
Join Date: Sep 2006
Old 11-03-2008 , 17:06   Re: [FAQ/Tutorial] CS Bomb Scripting
Reply With Quote #45

I looked at that post.....it's not easy to follow.
__________________
Clan [DPS] CS 1.6 server w/GG option

72.51.60.122:27015

www.DPS-CLAN.NING.com
BigNEO is offline
Twelve-60
Senior Member
Join Date: Aug 2007
Old 08-20-2009 , 06:59   Re: [FAQ/Tutorial] CS Bomb Scripting
Reply With Quote #46

Hey there, thanks for the tutorial

Just wondering how do I find out the player who is beginning to plant?

i.e.

Code:
// Bomb planting started event
register_event("BarTime", "event_function", "be", "1=3")
Thanks

- Twelve-60
__________________
Twelve-60 is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-20-2009 , 07:16   Re: [FAQ/Tutorial] CS Bomb Scripting
Reply With Quote #47

event_function ( id )
{
// id the the player who plant the bomb.
}
__________________
Arkshine is offline
Twelve-60
Senior Member
Join Date: Aug 2007
Old 08-20-2009 , 07:34   Re: [FAQ/Tutorial] CS Bomb Scripting
Reply With Quote #48

oh! why isn't this documented anywhere (that I found lol)

Does this only apply to events that are sent to a single player?

Thanks!

- Twelve-60
__________________
Twelve-60 is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-20-2009 , 07:42   Re: [FAQ/Tutorial] CS Bomb Scripting
Reply With Quote #49

"b" flag means it sens to a single target.

Read the documentation ; http://www.amxmodx.org/funcwiki.php?...vent&go=search . Not all the events are sent to a single target, it can be a global event like DeathMsg for example.
__________________
Arkshine is offline
Twelve-60
Senior Member
Join Date: Aug 2007
Old 08-20-2009 , 08:29   Re: [FAQ/Tutorial] CS Bomb Scripting
Reply With Quote #50

Yeah that's what I meant! Events that go to a single target must be the only ones that parse a client id to the event_function

- Twelve-60
__________________
Twelve-60 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 03:21.


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