[HELP] Using entity and loading bar
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. |
Re: [HELP] Using entity and loading bar
If you don't provide the code how we can help you? Words aren't enough. Anyway,take a look into CSSDK: https://github.com/Arkshine/CSSDK/bl...red/wpn_c4.cpp
|
Re: [HELP] Using entity and loading bar
It would be ideal to make your entity func_button class, and set its targetname to something like eg. "BombArm", and then you could work with something like this:
Spoiler
|
| All times are GMT -4. The time now is 13:11. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.