View Single Post
Author Message
MomemtumMori
SourceMod Donor
Join Date: Oct 2009
Old 01-18-2011 , 13:59   [CSS] Jihad Mod (Update 29/01/2011)
Reply With Quote #1

About:
It's a remake of the old eventscript plugin (es_bombermod) in sourcemod. It gives players (CT or T) bombs which over time activates and then can be detonated.

Features:
  • Illimited bomb types available for purchase via {sm_jihad_buybomb}. Each of them having incremental AoE set by {sm_jihad_sizemultiplier}.
  • To define the amount of types (levels) available, see {sm_jihad_bomblevels}.
  • Prices are set by {sm_jihad_pricebase} and {sm_jihad_priceupgrade}.
  • After a bomb is buyed, it activates after a given number of seconds set by {sm_jihad_predelay}. Deactivated bombs can not be used.
  • Players wearing an armed bomb will change color to RED. To activate or disable this feature, see {sm_jihad_coloronarmed}.
  • After a bomb is activated, it has a chance to fail upon detonation, set by {sm_jihad_failrate}, in which case it will automaticly rearm.
  • Before causing an actual explosion, a sound defined by {sm_jihad_postsoundpath} will be played and a delay before the explosion, to let the sound play, can be set by {sm_jihad_postdelay}. Setting the path to an empty string will not play any sound and setting the post delay to 0.0 will cancel any timing effect and the explosion will be instantaneous.
  • The explosion will not affect team members if {mp_friendlyfire} is set to 0.
  • Damage is standard for all bomb types. See {sm_jihad_explosiondamage}. Note that the wearer will not die if the damage is inferior to his health.
  • A limit can be set to restrain the amount of bombs present in each team at once. See {sm_jihad_bomblimitt} and {sm_jihad_bomblimitct}.
  • Another limit can be set to restrain the amount of times a player can buy a bomb during a single round. Useful for deathmatch servers. See {sm_jihad_bomblimitround}.

Commands:
  • sm_jihad_buybomb <0|N> - Buy a bomb or upgrade an existing one.
    • 0 - Upgrade
    • N - Level of the bomb to buy.
  • sm_jihad_detonate - Detonate your bomb, if any.

Configuration:
Code:
// This file was auto-generated by SourceMod (v1.3.5)
// ConVars for plugin "jihadmod.smx"


// Sets how many bomb types exists.
// -
// Default: "1"
sm_jihad_bomblevels "1"

// Sets how many CTs may carry a bomb at once.
// -
// Default: "0"
sm_jihad_bomblimitct "0"

// Sets how many time a player may buy a bomb per round.
// -
// Default: "1"
sm_jihad_bomblimitround "1"

// Sets how many Ts may carry a bomb at once.
// -
// Default: "2"
sm_jihad_bomblimitt "2"

// Sets whether the wearer of an armed bomb changes color.
// -
// Default: "1"
sm_jihad_coloronarmed "1"

// Sets whether the plugin is enabled or not.
// -
// Default: "1"
sm_jihad_enable "1"

// Sets the damage of the explosions.
// -
// Default: "400"
sm_jihad_explosiondamage "400"

// Sets the chance (in percent) that the bomb will fail to detonate.
// -
// Default: "0.25"
sm_jihad_failrate "0.25"

// Sets the delay (in seconds) before detonating the bomb.
// -
// Default: "1.0"
sm_jihad_postdelay "1.0"

// Sets the path of the sound to play after detonating the bomb. (Relative to the sound folder)
// -
// Default: "npc/zombie/zombie_voice_idle6.wav"
sm_jihad_postsoundpath "npc/zombie/zombie_voice_idle6.wav"

// Sets the delay (in seconds) before arming the bomb.
// -
// Default: "15.0"
sm_jihad_predelay "15.0"

// Sets the base price to buy a bomb.
// -
// Default: "5000"
sm_jihad_pricebase "5000"

// Sets the price to upgrade a bomb.
// -
// Default: "2500"
sm_jihad_priceupgrade "2500"

// Sets the radius of the explosions.
// -
// Default: "300"
sm_jihad_sizemultiplier "300"

// Version of the plugin.
// -
// Default: "0.3:5"
sm_jihad_version "0.3:5"


Planned:

  • A buy menu.
  • I am working along with the authors of similar plugins to make a "Unified" BomberMod which would include all the features of the said plugins. This will be great.

Changelog:
0.3 b5 (29/01/2011)
  • + Added the possibility to play a sound after a succesful detonation and before the explosion. {sm_jihad_postsoundpath}
  • + Added a cvar to control the delay before causing the explosion after a successful detonation. {sm_jihad_postdelay}
  • + Added a public cvar. {sm_jihad_version}
  • * Modifyed the name of {sm_jihad_delay} to {sm_jihad_predelay}.

0.2 b19 (22/01/2011)
  • + Added the possibility to customize to amount of levels available, rather than just 2.
  • + Added the feature to change the player's color when he wears an armed bomb.
  • * Modifyed sounds from activating, failing and exploding emitting from the world to the player's location.

0.2 b4 (18/01/2011)
  • First public release.

Known Issues:
  • When the plugin is loaded during the round the plugin may condratic itself by saying that a player has and then has not a bomb using the buy and detonate commands. An easy fix is simply to rejoin the server.
  • The limit for a given number of bombs in the CT team might be broken, if you experience this, please post asmuch details as you can ;)
  • Custom sounds used for {sm_jihad_postsoundpath} don't work.
It currently runs on my Jailbreak server if you want to try it before installing it on your own server.
Attached Files
File Type: sp Get Plugin or Get Source (jihadmod.sp - 1467 views - 13.0 KB)

Last edited by MomemtumMori; 06-19-2011 at 20:25. Reason: Coders Of Awsome Leetness
MomemtumMori is offline