[TF2] Explosive Arrows
Version 1.3.1
Introduction:
Are your arrows too weak? Buff them up with explosive arrows!
Shoot, hit, explode.
Works on huntsman and crusader's crossbow.
Dependency:
- SDKHOOKS (Already in Sourcemod 1.5+)
http://forums.alliedmods.net/showthread.php?t=106748
Convars:
sm_explarrows_enabled (Default: 1)
1 - Enabled
0 - Disabled
sm_explarrows_damage (Default: 50)
Damage of the explosion
sm_explarrows_radius (Default: 200)
Radius of the explosion
sm_explarrows_join (Default: 0)
Should people who spawn get explosive arrows?
0 - No
1 - Public
2 - Admins (Generic but can be override with sm_explarrows_join_access)
sm_explarrows_type (Default: 0)
0 - All
1 - Huntsman
2 - Crusader's Crossbow
sm_explarrows_delay (Default: 0)
How many seconds after hitting before exploding? (Seconds)
Commands:
sm_explarrowsme (Open command override with sm_explarrowsme)
(e.g sm_arrowsme) - Enabled arrows on yourself
sm_explarrows <Player> <1: On ; 0: Off> (ADMIN_GENERIC)
(e.g sm_arrows @all 1) - Enables explosive arrows on everyone
Installation:
1. Download explosivearrows.smx and explarrows.cfg.
2. Place the file in sourcemod/plugins folder.
3. Place the file "explosivearrows.cfg" in cfg/sourcemod folder or just load plugin as it auto generates.
4. Restart/Refresh map/plugins.
Installation:
1. Download explosivearrows.smx and explarrows.cfg.
2. Place the file in sourcemod/plugins folder.
3. Place the file "explosivearrows.cfg" in cfg/sourcemod folder or just load plugin as it auto generates.
4. Restart/Refresh map/plugins.
Credit:
Code:
FlaminSarge for version 1.3.1 for fixes and cleanup and figuring out delay explosives.
Version:
Code:
1.3.1 - Fixes, cleanup and adding delay explosion credited to FlaminSarge
https://forums.alliedmods.net/showpost.php?p=1977584&postcount=38
1.3 -
- Rewrote most of the plugin
- No longer uses timers
- Readded/Fixed admin join, admins repected by the convar sm_arrows_flag will get explosive arrows on join
- Added sm_arrows_flag which is used to associate with sm_arrowsme and sm_arrows_join commands
- Added sm_arrows_type to specify which arrow can have explosives
- Added tf2 only check
1.2.2 -
- Hopefully fixed those errors during map change.
1.2.1 -
- Removed player_death reset
- Moved precached to onmapstart()
- Added checks for cvar_join <-fixes the reset on death/team change
1.2 -
- Fixed player's id from being sticked to other players
- Added join convar to give explosive arrows to people who join
- Precaches the explosion effect to prevent any crashes
1.1 -
- I'm stupid, fixed a line with getting the flags of a player
- Also fixed getting valid client and enabled cvar twice
1.0 - Released
Other notes:
- The explosion damage will follow the friendly fire rules.
Enjoy...