AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [TF2] Explosive Arrows (1.3.1) [6/27/2013] (https://forums.alliedmods.net/showthread.php?t=203146)

Chaosxk 12-15-2012 12:49

[TF2] Explosive Arrows (1.3.1) [6/27/2013]
 
3 Attachment(s)
[TF2] Explosive Arrows
Version 1.3.1

http://i.imgur.com/fL8D5l.jpg?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...:fox:

wawazy 12-15-2012 14:06

Re: [TF2] Explosive Arrows (1.0) [12/15/12]
 
ok i test it now

wawazy 12-15-2012 14:25

Re: [TF2] Explosive Arrows (1.0) [12/15/12]
 
well i see no explosion on this

server map have been reloaded and all plugins

wa

Sreaper 12-15-2012 14:26

Re: [TF2] Explosive Arrows (1.0) [12/15/12]
 
This sounds interesting. Would you mind adding a screenshot or a video?

Chaosxk 12-15-2012 14:42

Re: [TF2] Explosive Arrows (1.0) [12/15/12]
 
You need SDKHooks to run this.

Can't really make a screenshot b/c it's too hard to take it when it explodes.
Video of course would be better but i never recorded anything on TF2 before.
If someone else minds doing it, i would appreciate it.

wawazy 12-15-2012 14:44

Re: [TF2] Explosive Arrows (1.0) [12/15/12]
 
i got all i need like sdhook


and i added you on steam if you want see in server

wa

Chaosxk 12-15-2012 15:28

Re: [TF2] Explosive Arrows (1.1) [12/15/12]
 
1.1 -
- I'm stupid, fixed a line with getting the flags of a player
- Also fixed getting valid client and enabled cvar twice

Also added a screenshot, nothing fancy.

wawazy 12-15-2012 15:51

Re: [TF2] Explosive Arrows (1.1) [12/15/12]
 
Nice work great now

Thanks

wa

Oshizu 12-15-2012 19:30

Re: [TF2] Explosive Arrows (1.1) [12/15/12]
 
This is great feature for admins on my server :)
And theres a issue with plugin submission. Plugin Game is Any not Team Fortress 2. You should change it. Some people might get confused and try install it on CS:S :twisted:

Chaosxk 12-15-2012 20:14

Re: [TF2] Explosive Arrows (1.1) [12/15/12]
 
Oh, woops. Fixed that,thanks.


All times are GMT -4. The time now is 19:36.

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