User is planting the bomb?
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 |
Re: User is planting the bomb?
You could use the good old method of hooking attack (buttons) through prethink and check their current weapon.
|
Re: User is planting the bomb?
Good thinking - I'm just hoping there is a less intensive way - as war3ft does a shit ton of stuff already...
|
Re: User is planting the bomb?
hook this . this is how i did it in my follwo hte bomb plugin :up:
Code:
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:up: |
Re: User is planting the bomb?
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).
|
Re: User is planting the bomb?
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:
|
Re: User is planting the bomb?
Is a second BarTime event sent that clears the bar, if they stop planting?
|
Re: User is planting the bomb?
i dont think so . thats why it ends ubruptly. Its just ended.
|
Re: User is planting the bomb?
meh slaps myself in face, but asks if this could be right ?
Code:
|
Re: User is planting the bomb?
Quote:
|
| All times are GMT -4. The time now is 20:17. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.