Raised This Month: $ Target: $400
 0% 

[HELP] Using entity and loading bar


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
wiwi249
Member
Join Date: Oct 2013
Old 07-28-2014 , 05:25   [HELP] Using entity and loading bar
Reply With Quote #1

Hello again!
I've recently encountered a problem while making my mod. Can someone write me the method to solve it?
Player approaches a static "bomb" entity that is set on map already (done). He has to arm the bomb, so he just simply uses it with USE key. Arming the bomb takes few seconds, so a loading bar appears. If the player dies or stops arming (e.g. simply releases the USE key) the loading bar disappears and the bomb is back in the unarmed state.
I've been wondering if i should use a couple of functions, player prethink, entity think or what? No idea. I havent seen this thing in any plugin so that I could just look at the code and use it. Anyone help me with the code?

To these who dont acctually understand my post, it's very like the "Rush" game mode in Battlefield: Bad Company 2.
wiwi249 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 13:11.


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