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

User is planting the bomb?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Geesu
Veteran Member
Join Date: Mar 2004
Location: Cincinnati, OH
Old 11-29-2006 , 16:38   User is planting the bomb?
Reply With Quote #1

How can I detect this? I need to know if the user is currently planting - not if they planted.

I have a few ideas and was wondering if others thought of an easier way before I begin...

Check the player's animation
Catch when the bar is displayed on the screen - my only concern here is what if the player didn't complete planting it - I would have to reset the isPlayerPlanting variable - how do do this?

Thanks,
Josh
__________________
Need war3ft help? DO NOT PM ME... Check the forums
Geesu is offline
Send a message via AIM to Geesu Send a message via MSN to Geesu
Zenith77
Veteran Member
Join Date: Aug 2005
Old 11-29-2006 , 16:43   Re: User is planting the bomb?
Reply With Quote #2

You could use the good old method of hooking attack (buttons) through prethink and check their current weapon.
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
Geesu
Veteran Member
Join Date: Mar 2004
Location: Cincinnati, OH
Old 11-29-2006 , 16:45   Re: User is planting the bomb?
Reply With Quote #3

Good thinking - I'm just hoping there is a less intensive way - as war3ft does a shit ton of stuff already...
__________________
Need war3ft help? DO NOT PM ME... Check the forums
Geesu is offline
Send a message via AIM to Geesu Send a message via MSN to Geesu
The Specialist
BANNED
Join Date: Nov 2006
Old 11-29-2006 , 16:47   Re: User is planting the bomb?
Reply With Quote #4

hook this . this is how i did it in my follwo hte bomb plugin

Code:
register_event("BarTime", "bomb_planting", "be", "1=3");

Unfortunatly to recover id's from a log event you need a special function . you should look at how i did it in my follow the bomb plugin in my signiture

Last edited by The Specialist; 11-29-2006 at 16:49.
The Specialist is offline
Send a message via AIM to The Specialist
Zenith77
Veteran Member
Join Date: Aug 2005
Old 11-29-2006 , 16:49   Re: User is planting the bomb?
Reply With Quote #5

Only problem is that other 3rd prarty plugins can also invoke the progress bar. Then again, you could check if they have the C4 out. But, then again there could be some weirdo situation where the user has the c4 out and a progress bar is being displayed for some other reason (such as some custom weapons require that you have the c4 out to use them).
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
The Specialist
BANNED
Join Date: Nov 2006
Old 11-29-2006 , 16:52   Re: User is planting the bomb?
Reply With Quote #6

yes the fool proof way of using this would be to check the users weapons to make sure he had the c4 out when the bartime is displayed. then to check to make suer its planted use

Code:
register_logevent("bomb_is_planted", 3, "2=Planted_The_Bomb");
The Specialist is offline
Send a message via AIM to The Specialist
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 11-29-2006 , 17:03   Re: User is planting the bomb?
Reply With Quote #7

Is a second BarTime event sent that clears the bar, if they stop planting?
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
The Specialist
BANNED
Join Date: Nov 2006
Old 11-29-2006 , 17:10   Re: User is planting the bomb?
Reply With Quote #8

i dont think so . thats why it ends ubruptly. Its just ended.
The Specialist is offline
Send a message via AIM to The Specialist
dutchmeat
Senior Member
Join Date: Sep 2006
Old 11-29-2006 , 18:39   Re: User is planting the bomb?
Reply With Quote #9

meh slaps myself in face, but asks if this could be right ?

Code:
public <b>bomb_planting</b> ( planter ) { return PLUGIN_HANDLED }
__________________
before you criticize someone, you should walk a mile in their shoes. that way, when you criticize them, you're a mile away and you have their shoes.
dutchmeat is offline
Zenith77
Veteran Member
Join Date: Aug 2005
Old 11-29-2006 , 23:14   Re: User is planting the bomb?
Reply With Quote #10

Quote:
Originally Posted by The Specialist View Post
yes the fool proof way of using this would be to check the users weapons to make sure he had the c4 out when the bartime is displayed. then to check to make suer its planted use

Code:
register_logevent("bomb_is_planted", 3, "2=Planted_The_Bomb");
Once again, that's not fool proof for the reasons stated above. With your above method, nm I don't feel like explaining.
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 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 12:20.


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