Raised This Month: $ Target: $400
 0% 

terrorist can defuse


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Lulu the hero
Senior Member
Join Date: Oct 2009
Location: Budapest, Hungary
Old 01-31-2011 , 20:42   Re: terrorist can defuse
Reply With Quote #3

Quite a crazy idea. Wouldn't it be easier if you would switch all players team quietly with cs_set_user_team, while not changing their model? That way the cts could plant, and the ts could defuse.

Seriously try go around it. Check if the user, who wants to defuse is pressing the USE key( check in player pre think ) and pointing against the planted bomb entity( use get_user_aiming, because you can set the distance here ). If so, then start a "defuse progress" animation( you can find a good example for that in the zp_extra_lasermine plugin ). If the progress finished, then remove the bomb entity and force a round end, plus display a message in the center.
Simple!

Edit:
Never mind the player pre think - pointing - using part. Your Ham function is better.

Last edited by Lulu the hero; 01-31-2011 at 20:46.
Lulu the hero is offline
 



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 14:47.


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