View Single Post
Plugin Info:     Modification:          Category:          Approver:   Exolent[jNr] (178)
Silencer123
Veteran Member
Join Date: Jul 2006
Old 11-04-2008 , 17:43   Tripmine Indicator Version 1.2
Reply With Quote #1

Tripmine Indicator Version 1.2

This plugin, when turned on, gives you statistics about how many tripmines
are in the game, and how many of these are yours and how many of these are
owned by the map/other players. (See screenshot snippet below)

CVars:
mp_mineindicator - 1 (Default) enables - 0 disables. - Enable the indicator?
mp_freemines - 1 (Default) enables - 0 disables. - Give the player infinite mines?

This plugin has been tested with multiple players and always outputs correct
values. It has been optimized for minimal CPU and network usage.

(Made in 800*600 - Works with all resolutions)
[IMG]http://img231.**************/img231/2625/subtransit0000rm2.png[/IMG]

This should work on all modifications which still use tripmines.
Tested games:
- Half-Life (Plugin works)
- Sven Co-op 3.0 (Plugin works)
- Sven Co-op 4.0 Beta (Plugin works)

This plugin is a portion of a bigger plugin I planned to make.

Changelog:
  • V. 1.0: Initial Release
  • V. 1.1: Removed "include <engine>", since it is not needed. (Was a leftover)
  • V. 1.2: Now using fakemeta_util to hand out unlimited tripmines. This seems to fix the satchel issue. Also made code shorter where possible, increased default amount of slots for edicts and changed the name of a variable, because it was misleading.
Attached Files
File Type: sma Get Plugin or Get Source (tripmine_indicator.sma - 1412 views - 3.8 KB)
__________________
EAT YOUR VEGGIES

Last edited by Silencer123; 06-19-2009 at 18:10. Reason: Updated
Silencer123 is offline