Satchel Charges v1.2
- by v3x
Everyone starts out with a detonator at the start of each round. The detonator is worked by the knife. This detonator can be used to detonate your satchel charges that you plant. It can also be dropped by using your default CS drop button. Now, you must HAVE a detonator to plant/detonate satchel charges. Of course you need to buy them first, I'll go more into commands in a bit. You plant the bomb by PRESSING ( not HOLDING ) your attack button with your knife, then a progress bar will show up and go until it's fully planted and armed. Then to detonate it, simply press your button bound to your secondary attack ( +attack2 ). Depending on the cvars, there may be a delay when planting/detonating. Also, when you die, you will drop any of your charges ( if you have any ) and they will glow so other players can pick them up. This plugin will also play an assortment of sounds when you are doing different things.
Onward, to commands
- The bind to buy a satchel charge
- Another way of the above command but using 'say'.
- Shows the help window.
+attack w/ knife:
- Plant charge
+attack2 w/ knife:
- Detonate charge
- Toggles charge plugin on/off
- Counts the # of charges planted and displays the owner's name next to it in console.
scmenu / sc_menu
- Brings up the CVAR control menu ( Read below for instructions on adding this menu to amxmodmenu! )
- Turns plugin on/off ( better if done with toggle cmd, default: 1 )
- Max # of charges a player can carry ( default: 3 )
- Time delay after plant button is pressed to plant the charge ( default: 2 )
- Time delay after detonation button is pressed to detonate the charge ( default: 1 )
- Cost of a satchel charge
- Limit buying to the buyzone? ( default: 1 )
- Radius of charge explosion ( default: 300 )
- Max damage done by charge explosion ( default: 100 )
- Amount of cash given per kill ( default: 350 )
- Gives cash for doing damage but not killing the player ( [killcash/2] default: 1 )
- Owner of the charge is immune to the blast? ( FF must be on, default: 0 )
- If you have godmode, it won't kill you ( default: 0 )
- If you have charges when you die they will drop on the ground ( default: 1 )
How to add to amxmodmenu:
1) Open custommenuitems.cfg
2) Add a line like so:
amx_addmenuitem "Satchel Charge CFG" "scmenu" "gu" "Satchel Charges"
3) You're done!
How to use the banned maps feature:
1) Open sc_banned.ini
2) Put the map name in there ( 1 per line )
- On a very RARE and unusual occasion all players will die from the blast, not common.
- The model animations won't display when planting/detonating (v models)
-> CVAR menu ( thank you! )
-> The general origin of the idea ( mines plugin )
-> Progress bar idea
-> Tracking movements function
-> The concept of using HL models
-> A small code snippet for the explosion
-> Some Engine help ;]
-> Making a simple solution of a somewhat big problem ^^
-> For suggesting these specific models ;D
-> For his uber-1337ness and staying up all night working on this
- Fix animations
Please leave your comments/suggestions/ideas. Also, please report any bugs within this plugin! Thank you