Raised This Month: $ Target: $400
 0% 

Multiple C4s


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Cheap_Suit
Veteran Member
Join Date: May 2004
Old 06-21-2006 , 08:11   Multiple C4s
Reply With Quote #1

IF there were multiple c4's how would you get which c4 is defused?
__________________
HDD fried, failed to backup files. Sorry folks, just don't have free time anymore. This is goodbye.
Cheap_Suit is offline
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 06-21-2006 , 08:12  
Reply With Quote #2

what do u mean which c4 is defused? the one that doesn't exist anymore.
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
Cheap_Suit
Veteran Member
Join Date: May 2004
Old 06-21-2006 , 08:15  
Reply With Quote #3

Yup


Edit:

Yea the one that doesn't exist anymore..
__________________
HDD fried, failed to backup files. Sorry folks, just don't have free time anymore. This is goodbye.
Cheap_Suit is offline
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 06-21-2006 , 08:22  
Reply With Quote #4

yup.. what? I think someone is misunderstanding someone else here...
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
Cheap_Suit
Veteran Member
Join Date: May 2004
Old 06-25-2006 , 20:48   Re: Multiple C4s
Reply With Quote #5

Sorry. Yea the one that doesn't exist anymore or the only that is getting defuse.
__________________
HDD fried, failed to backup files. Sorry folks, just don't have free time anymore. This is goodbye.
Cheap_Suit is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 06-26-2006 , 02:21   Re: Multiple C4s
Reply With Quote #6

You could catch the bomb defused sound ( if it's emitted from the C4 entity ) and then use the entity id for that.

If you want to get the entid for the first bomb planted this *should* work:
Code:
#include <amxmodx> #include <fakemeta> public plugin_init() {     register_event("HLTV" , "event_HLTV" , "a" , "1=0" , "2=0");     register_forward(FM_SetModel , "forward_SetModel"); } new g_FirstC4ID; public event_HLTV()     g_FirstC4ID = 0; public forward_SetModel(ent , const model[]) {     if(equal(model , "models/w_c4.mdl") && !g_FirstC4ID)         g_FirstC4ID = ent; }
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
Cheap_Suit
Veteran Member
Join Date: May 2004
Old 06-27-2006 , 03:05   Re: Multiple C4s
Reply With Quote #7

I fould my answer on csx. Thanks everyone
__________________
HDD fried, failed to backup files. Sorry folks, just don't have free time anymore. This is goodbye.
Cheap_Suit is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 06-27-2006 , 12:53   Re: Multiple C4s
Reply With Quote #8

Why would you need csx for bomb events? All events can be easily handled with the register_[log]event's: CS Bomb Scripting FAQ/Tutorial
VEN is offline
Reply


Thread Tools
Display Modes

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 08:01.


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