Raised This Month: $ Target: $400
 0% 

Satchel Charges ( from Half-Life ) v1.2


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff        Approver:   Johnny got his gun (102)
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 07-21-2005 , 16:59   Satchel Charges ( from Half-Life ) v1.2
Reply With Quote #1

Satchel Charges v1.2 - by v3x

Description:
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..

Player Commands:
buycharge
- The bind to buy a satchel charge
say\say_team /buycharge
- Another way of the above command but using 'say'.
say\say_team /chargehelp
- Shows the help window.
+attack w/ knife:
- Plant charge
+attack2 w/ knife:
- Detonate charge
-----
Admin commands:
charge_toggle
- Toggles charge plugin on/off
charge_num
- 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! )
-----
Cvars:
amxx_charge_active <0|1>
- Turns plugin on/off ( better if done with toggle cmd, default: 1 )
amxx_charge_limit <#>
- Max # of charges a player can carry ( default: 3 )
amxx_charge_plant_time <secs>
- Time delay after plant button is pressed to plant the charge ( default: 2 )
amxx_charge_delay_time <secs>
- Time delay after detonation button is pressed to detonate the charge ( default: 1 )
amxx_charge_cost <0-16000>
- Cost of a satchel charge
amxx_charge_buyzone <0|1>
- Limit buying to the buyzone? ( default: 1 )
amxx_charge_radius <#>
- Radius of charge explosion ( default: 300 )
amxx_charge_damage
- Max damage done by charge explosion ( default: 100 )
amxx_charge_killcash <0-16000>
- Amount of cash given per kill ( default: 350 )
amxx_charge_dmgcash <0|1>
- Gives cash for doing damage but not killing the player ( [killcash/2] default: 1 )
amxx_charge_immunity <0|1>
- Owner of the charge is immune to the blast? ( FF must be on, default: 0 )
amxx_charge_godmode <0|1>
- If you have godmode, it won't kill you ( default: 0 )
amxx_charge_deathdrop <0|1>
- 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:
Code:
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 )
-----
Required Modules:
- Cstrike
- Engine
- Fun
-----
Screenshots:Known Bugs:
- 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)
-----
Credits:
- xeroblood:
-> CVAR menu ( thank you! )
-> The general origin of the idea ( mines plugin )
-> Progress bar idea
-> Tracking movements function
- KleeneX:
-> The concept of using HL models
-> A small code snippet for the explosion
-> Some Engine help ;]
- twistedeuphoria:
-> Making a simple solution of a somewhat big problem ^^
- knekter:
-> For suggesting these specific models ;D
- v3x:
-> For his uber-1337ness and staying up all night working on this
-----
To do:
- Fix animations
-----

Please leave your comments/suggestions/ideas. Also, please report any bugs within this plugin! Thank you
Attached Files
File Type: sma Get Plugin or Get Source (satchel_charges1.2.sma - 3847 views - 35.2 KB)
File Type: zip satchel_charges1.2.zip (48.2 KB, 2432 views)
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x 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 17:27.


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