View Single Post
Plugin Info:     Modification:          Category:          Approver:   Arkshine (91)
Kidev
Veteran Member
Join Date: Jun 2010
Location: France
Old 06-14-2011 , 09:28   I'll plant the bomb on... 2.3.0 - Let your team know where you'll plant
Reply With Quote #1

I'll plant the bomb on... - v2.3.0 by Kidev
So your team will know


Description:

This plugin asks (via a menu) to the terrorist who spawns with the bomb on which bomb site he intends to plant the bomb. The terrorist can change his choice after 10 seconds (changeable via a cvar, see below) by left cliking while holding the bomb (right clik is impossible, sorry). He can't change his choice more than one time (changeable via a cvar, see below). If an another terrorist than the one who spawns with the bomb collect it, he can choose his own strategy (changeable via a cvar too, see below) etc...

You can change the "Cover me" sound by changing this:
PHP Code:
#define RADSOUND "radio/ct_coverme.wav" 
and replacing "radio/ct_coverme.wav" by any sound you want (must be a *.wav mono sound).

My plugin support from 1 to 5 bomb sites, which are listed whith their names in a menu.


Cvars:

ipo_toogle (Default: 1)
  • 1: Plugin is enabled.
  • 0: Plugin is disabled.

ipo_change_cooldown
(Default: 10.0)
  • Changes the cool down between two menu open (must be a float).

ipo_change_limit
(Default: 1)
  • Maximum times a player is allowed to open the menu.

ipo_print_mode (Default: 2)
  • 1: Print "[AMXX] Your teammate will plant the bomb on %s! Cover him!" in chat text to all Terrorists.
  • 2: Print "I will plant the bomb on %s, cover me!" in say_team to all Terrorists [More realisctic].
  • 3: Print "Your teammate will plant the bomb on %s! Cover him!" in center say to all Terrorists.

ipo_use_rad_cmd
(Default: 1)
  • 0: "Cover me!" sound disabled.
  • 1: "Cover me!" sound enabled.

ipo_reopen_mode
(Default: 2)
  • 0: Menu is opened only once a round (on bomb's owner spawn).
  • 1: Menu is re-openable by the terrorist who have the bomb (no matter if he spawn with or not) by right cliking.
  • 2 or more: Menu re-opens automatically if bomb is collected on the floor and is re-openable by by right cliking.


To do:

Nothing, this plugin is complete.


Changelog:
Code:
v2.3.0 @ 21/11/14
* Fixed an array-related error in menu
v2.2.0 @ 05/11/14
* Removed some dust and added some MLs
v2.1.0
* Replaced array sizes by a macro
v2.0.0 
+ Added the possibility to reopen the menu with a left clik while holding the bomb (left clik is impossible, sorry)
+ Added automatic menu re-open when bomb is collected on the floor
+ Added cool down and max changing limit (to prevent flood)
+ Added a cvar to toogle plugin
+ Added a cvar to change cool down's time
+ Added a cvar to change change's limit
+ Added all the ML's
* Changed the variable's names
v1.5.0
* Optimizations
v1.4.0
* Optimizations
v1.3.0 
* Optimizations
v1.2.0 
+ Added ML support and first public release
v1.0.0 
^ First public version

Credits:

VEN - For his CS Bomb Scripting tutorial
ConnorMcLeod - For a lot of optimizations (v1.3 .. v1.5)
TenK - For some testing


Multi-Lingual:

- EN: -Kid-
- FR: -Kid-
- ES: paoliita
- DE: Mordekay
- BG: papyrus_kn and r14170
- MY: JoKeR LauGh
- BP: wlacobain
- RU: alonelive
- TR: Carbon3180 and xD_1991
- SR: RepeR. (Incomplete because of the update)
- NL: drekes (Incomplete because of the update)
- PL: Abes_Ziomal_PL(Poland) (Incomplete because of the update)

Code:
[en]
IPO_MENU_TITLE = I will plant the bomb on ...
IPO_PLANT_ON = Your teammate will plant the bomb on %s! Cover him!
IPO_ILL_PLANT_ON = I will plant the bomb on %s, cover me!
IPO_LIMIT_REACHED = You have reached the limit of change strategy (%i)
IPO_MUST_WAIT = You must still wait %i second(s) before changing your strategy
IPO_CHANGE_STRAT = Choose your strategy
Current version (stable):
Attached Files
File Type: sma Get Plugin or Get Source (ipo_2.3.0.sma - 2259 views - 5.7 KB)
File Type: txt ipo.txt (4.7 KB, 878 views)
__________________

Last edited by Kidev; 11-20-2014 at 18:59.
Kidev is offline