[youtube]https://youtu.be/AyNLrRxBMaw[/youtube]
Description:
Code: Select all
Quote:
Make your weapons have explosive bullets!
You can set specific weapons to have explosive bullets, or make them all explosive.
You can make explosive bullets do 0 damage just for the explosive effect, or make them do a lot.
It's your choice, you can modify these values with a configuration file!
Code: Select all
Quote:
Sourcemod 1.8+
Metamod 1.10+
Code: Select all
Quote:
Place explosivebullets.smx to addons/sourcemod/plugins/
Place explosivebullets_guns.cfg to addons/sourcemod/configs/ and edit your configuration to fit your needs
Place explosivebullets.cfg to cfg/sourcemod/ and edit your convars to fit your needs
Code: Select all
Quote:
sm_eb_enabled - (Default: 1) - Enables/Disables plugin
sm_eb_warmup - (Default: 1) - If set to 1, explosive bullets will be enabled for everyone during warmup round otherwise 0 to turn off (Ignores Enable/Flag key in configs)
sm_eb_roundend - (Default: 1) - If set to 1, explosive bullets will be enabled for everyone when round ends and is waiting for the next round restart otherwise 0 to turn off (Ignores Enable/Flag key in configs)
Code: Select all
Quote:
sm_eb <client> <1:ON | 0:OFF> - Turns on/off explosive bullets, this will make ALL weapons have explosive bullets regardless if it is disabled in configuration
sm_explosivebullets - Same as sm_eb
sm_ebme - Enables explosive bullets on yourself.
sm_explosivebulletsme - Same as sm_ebme
Code: Select all
Under sourcemod/configs/explosivebullets_guns.cfg
You can enable/disable and set the damage and radius of explosive bullets for each weapon, if enabled then explosive bullets will be enabled for that gun.
You can also set the flag of who will receive explosive bullets, https://wiki.alliedmods.net/Adding_A...rceMod)#Levels for the flags.
Here is an example for the AK47:
[code]"weapon_ak47" //Classname of weapon
{
"Enable" "1" //0 to turn off, 1 to turn on
"Damage" "10.0" //Damage done to player, does lesser damage the further player is away from impact with respect to the radius
"Radius" "100.0" //Radius of damage done
"Flag" "b" //Only players with this flag can have explosive bullets for this weapon, check https://wiki.alliedmods.net/Adding_Admins_(SourceMod)#Levels for more flags
}
LOGS:
Code: Select all
2.2 -
Fixed memory leak in kv config
Fixed logic giving explosive bullets on non warm-up rounds?
Cleaned up some code and syntax
2.1 -
Updated/Fixed flag/commands not properly giving explosive bullets to guns
Added convar sm_eb_warmup which will enable explosive bullets on all weapons during warmup round
Added convar sm_eb_roundend which will enable explosive bullets on all weapons during the round end bonus time
Added command sm_ebme/sm_explosivebulletsme which will enable explosive bullets on yourself only
2.0 - Rewritten code
Explosive bullets will now be given automatically to weapons that is specified in sourcemod/configs/explosivebullets_guns.cfg
You can now enable/disable and set damage/radius for each specific weapon from the new configuration file at sourcemod/configs/explosivebullets_guns.cfg
sm_eb and sm_explosivebullets can turn on explosive bullets for ALL weapons regardless if that weapon is disabled in the configs
No longer creates an explosion with env_explosion entity (FPS heavy), now creates a custom made explosion (Less FPS intensive)
Explosion is now created with temp entities/sounds and plugin does all calculation of damage (See new video uploaded in O.P)
Explosion now does less damage the further you are away the impact
The new explosion effect will not hurt FPS as much as env_explosion entity did
Removed the convars sm_eb_damage and sm_eb_radius
Shotguns no longer plays extra sounds from the explosion per bullet (There will still be multiple explosion from shotguns, but not multiple sounds)
v.1.1
Oops forgot to disable explosives when client disconnects
v.1.0 - Release