View Single Post
Plugin Info:     Modification:          Category:          Approver:   Hawk552 (427)
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 10-23-2009 , 07:39   Fire Mode Information
Reply With Quote #1

Fire Mode Information v1.2

* Description
Displays the current fire mode setting when deploying or picking up a Famas or Glock18 and also clears the message if the weapon is holsterd.

The purpose of this plugin is to inform you of your weapons's fire mode (full/semi/auto, available only for Glock18 and Famas) when you pick it up or draw it in case you forgot or didn't even knew what mode it was set on before picking it up.

Also I added a sound effect that can be heard by players near you when you switch the fire mode.

* CVars
amx_firemodeinfo_enabled 0/1 (default: 1)
Enables/disables plugin, updated every round.

amx_firemodeinfo_sound 0/1/2 (default: 2)
Enables/disables usage of sound effects when switching fire mode, when set to 1 only the player can hear it, set it to 2 and all players near that player can hear it also.

NOTE: CVar values update every round start.

* Modules Required
- hamsandwich
- fakemeta
- engine
- cstrike

* Credits
- ConnorMcLeod - optimization, new center message function and extra sound feature tips
- Arkshine, Hawk552, Alucard^ - name issue =)

* Changelog
Version 1.0
- Initial release
Version 1.1
- Optimized code & usage
- Extended sound cvar, it now sets: no sound/only player/anyone near player
- Lowered switch volume from 0.8 to 0.5
- Added an alternative center text method that does not add over original text messages.
Version 1.1b
- Minor fix: the sound triggers on spectator mode change too, because of a typo.
Version 1.1c
- Minor fix: checks so it doesn't show up when you have a shield
Version 1.2
- Fixed rare error on cs_get_user_shield() because the player doesn't exist.
- Some minor adjustments and added checking if player is connected on each function

This plugin can be compiled via Web Compiler (aka "Get Plugin")
Attached Files
File Type: sma Get Plugin or Get Source (fire_mode_info.sma - 2690 views - 5.8 KB)
__________________

Last edited by Hunter-Digital; 06-14-2010 at 03:42. Reason: new version, 1.2
Hunter-Digital is offline