DoD:S Capture Bonus
Version update to 1.2
Hey guys,
this is a simple bonus system for Day of Defeat:Source. After you captured a flag, a menu comes up, where you can choose extra health or extra ammo. The extra ammo is based on the weapon classes. So if you are playing the SUPPORT class and you pick up an other primary weapon like a K98, you get your granades for the SUPPORT class anyway, and no rifle granades.
I hope you have some additional ideas. So, feel free to post any of them.
Try it and have fun
Features:- Enable or disable a specific bonus type
- Set the amount of flags you need to get the bonus
- Set the number of clips of a specific weapon
- Set the time of a specific bonus type, like god mode
- Bonus: Extra ammo
- Bonus: Extra health
- Bonus: God mode
- Bonus: Invisibility mode
- Bonus: Unlimited granades
- Bonus: Secondary weapon
- Bonus: Unlimited stamina
[IMG]http://img237.**************/img237/1407/unbenannt1uz7.jpg[/IMG]
Installation:- Copy the files to the sourcemod folder
- ../dod/addons/sourcemod/plugins/dod_capture_bonus.smx
- ../dod/addons/sourcemod/scripting/dod_capture_bonus.sp (not necessary)
- ../dod/addons/sourcemod/configs/dod_capture_bonus.cfg
- ../dod/addons/sourcemod/translations/dod_capture_bonus.phrases.txt
- Now it should work!
Configuration:
Code:
//
// Here you can configure your different bonus types and the corresponding properties.
//
// Properties
// ----------
// enabled (A bonus is 1=enabled or 0=disabled)
// flags (Captured flags you need to get a bonus; 0=every captured flag)
// periodic (0=bonus after x flags; 1=bonus after x, x+x, x+x+x, ... flags)
// amount (The amount of something the player gets)
// time (The time a bonus is active)
// clips (How much clips of ammo)
//
"dod_capture_bonus"
{
"extra_ammo"
{
"enabled" "1"
"flags" "4"
"periodic" "1"
"clips"
{
"weapon_smoke_us" "1"
"weapon_smoke_ger" "1"
"weapon_frag_us" "1"
"weapon_frag_ger" "1"
"weapon_riflegren_us" "1"
"weapon_riflegren_ger" "1"
"weapon_colt" "1"
"weapon_p38" "1"
"weapon_garand" "2"
"weapon_k98" "2"
"weapon_thompson" "2"
"weapon_mp40" "2"
"weapon_bar" "2"
"weapon_mp44" "2"
"weapon_30cal" "2"
"weapon_mg42" "2"
"weapon_spring" "2"
"weapon_k98_scoped" "2"
"weapon_bazooka" "2"
"weapon_pschreck" "2"
"weapon_m1carbine" "3"
"weapon_c96" "3"
}
}
"extra_health"
{
"enabled" "1"
"flags" "4"
"periodic" "1"
"amount" "20"
}
"secondary_weapon"
{
"enabled" "1"
"flags" "10"
"periodic" "0"
"clips" "3"
}
"unlimited_stamina"
{
"enabled" "1"
"flags" "10"
"periodic" "1"
"time" "15"
}
"unlimited_granades"
{
"enabled" "1"
"flags" "15"
"periodic" "0"
}
"god"
{
"enabled" "1"
"flags" "20"
"periodic" "0"
"time" "15"
}
"invisible"
{
"enabled" "1"
"flags" "25"
"periodic" "0"
"time" "15"
}
}
Changelog:
1.0.1- Fixed some warnings appeared after compilation.
1.1.0
- Added a configuration file
- Added translation file for multiple languages
- Added God mode
- Added Invisibility mode
- Changed the extra health bonus
1.2.0
- Fixed the debug output "...Health: 1000..."
- Added bonus "Unlimited granades"
- Added bonus "Secondary weapon"
- Added bonus "Unlimited stamina"
- Changed (If only one bonus detected, no menu appears)
- Changed (Some translations)
- Added cvar "sm_capbon_enabled" (You can enable or disable the plugin easily)