View Single Post
Author Message
An00bis
New Member
Join Date: Sep 2011
Old 09-02-2011 , 03:57   [PVK2] Chest Capture Bonus 1.2 (03-02-2022)
Reply With Quote #1

Description
When you capture a chest you get points in the specialbar like you do for combat.

Features
adds the Text "Chest Capture Bonus" to your sv_tags

CVARS
  • sm_chestcapturebonus_enabled 1 "Enables/Disables the plugin <0/1> def. 1"
  • sm_chestcapturebonus_percentage 25.0 "How many percent the Specialbar should increase when a chest is captured <0.0 .. 100.0> def. 25.0 (this must be a floating point value)"
Attention: No automatic config creation. You have to take care of the cvars on your own.

Changelog
05-04-2012 (1.0.0)

* Initial Release

10-24-2012 (1.1.0)

* Fixed sv_tags add tag thingy
* Fixed special sound playing when chest captured while special is already full
* Added values for 2.5 update (new Sharpshooter class)

07-18-2015 (1.1.1)

* Added values for the Men-at-Arms class

10-31-2018 (1.1.2)

* Added values for 0.4.1.0 update (new Bondi class)
* Adjusted values for the Berserker class

03-02-2022 (1.2.0)

* Completely reworked the way the plugin detects the maximum special value
* Throw away all this hardcoded array lookup non-sense. No more unrecognized newly added classes which will not receive any special bonus

Special thanks to
- Korgoth of Barbaria

Installation instructions

The usual way.

TODO

*Look out for more bugs/inefficient bu||sh*t and improve this plugin

This Plugin is for Pirates, Vikings & Knights 2 and will probably not run in other mods.
Attached Files
File Type: sp Get Plugin or Get Source (pvk2_chest_bonus.sp - 80 views - 3.1 KB)

Last edited by An00bis; 03-02-2022 at 17:07.
An00bis is offline