C4 Taker
3 Attachment(s)
C4 TAKER v1.09
(For lack of a better name) Description: Enables you to take the C4 from a teammate by aiming at him/her and pressing the USE key. (default 'E') This is especially useful when playing with bots either for gameplay or debug purposes... Requires: amxmodx | fakemeta_util | hamsandwich CVARs:
Notes:
v1.09
0 - Disables admin_only. Everyone can take the C4.
SPECIAL THANKS: To joaquimandrade & ConnorMcLeod for their EasyWeaponsTrade that inspired the idea. To wickked & JusTGo for helping me with the HUD message. To VEN for his bomb scripting tutorial. To HamletEagle for helping me optimize the script. |
Re: C4 Bot Taker - joaquimandrade and ConnorMcLeod
Good Job!
|
Re: C4 Bot Taker - joaquimandrade and ConnorMcLeod
const MaxSlots = 32
get_maxplayers(), unless pHit only returns players, then it's not even necessary to check. new Float:MaxDistance = 200.0 cvar is never a bad idea, no big deal though. num[] is never reset for new players that might inherit an old id. Is it possible to aim at a dead player in StatusValue? (I don't actually know. I'm just checking if you checked) Other than that, afaik, looks good. |
Re: C4 Bot Taker - joaquimandrade and ConnorMcLeod
Nothing for say, just two words:
Nice job |
Re: C4 Bot Taker - joaquimandrade and ConnorMcLeod
PHP Code:
PHP Code:
|
Re: C4 Bot Taker - joaquimandrade and ConnorMcLeod
Will be perfectly if we can take c4 with players, no only bots.
|
Re: C4 Bot Taker - joaquimandrade and ConnorMcLeod
Hey guys! I'm glad you liked the idea. Unfortunately it's going to be a busy week at work. I'll try to find some time edit the plugin.
I'm gonna add a couple of cvars for in game customization but as for anything in the 'getLookingAt' function, I'm going to need a bit help because that's the part I didn't write. I got straight from the EasyWeaponsTrade plugin. Don't worry, I'll just drop a few lines here if I run into problems. Probably I'll start with the cvars tomorrow. Till then ... |
Re: C4 Bot Taker - joaquimandrade & ConnorMcLeod
getLookingAt can be replaced with get_user_aiming. In fact, it's [almost] the same code.
|
Re: C4 Bot Taker - joaquimandrade & ConnorMcLeod
UPDATE 1.01
Ok guys I added 3 cvars for your gaming pleasure: Quote:
Use_Button function now looks like this, like JusTGo suggested: PHP Code:
PHP Code:
StatusValue, as far as I know, do not trigger on dead players. The names and health percentages just don't show up. As for this: Quote:
EDIT: ==== In light of what Hamlet has just told me, I will next attempt to replace getLookingAt with get_user_aiming in an effort to make the plugin more efficient... UPDATE v1.02 Replaced getLookingAt function with native get_user_aiming. |
Re: C4 Bot Taker - joaquimandrade & ConnorMcLeod
Can you add a feature (for admins) to take c4 from a player and give to another.
amx_takebmb player_with_bomb target_player Because if a noob doesn't plant it's annoying to find him and take c4 with aim. BTW, nice plugin. |
All times are GMT -4. The time now is 20:29. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.