Thread: TFC Sniper Glow
View Single Post
Plugin Info:     Modification:          Category:          Approver:   GHW_Chronic (70)
GoGo_xD
Junior Member
Join Date: Jun 2006
Location: Paris, France
Old 06-18-2006 , 18:15   TFC Sniper Glow
Reply With Quote #1

Quote:
A lot of (pro)TFC players don't like playing with snipers. And they restrict the Sniper class with the cr_sniper command.

Instead of prohibiting this class, why don't we penalize it?
Description:
  • This plugin will add a glowing effect on all snipers in the game.
    Glowing color is the color of the team, of course.

    The attached file contains the source code of my plugin, and the AMXX compiled plugin.
CVARS:
  • tfc_sniper_glow <0/1> : this will turn ON(1) or OFF(0) the glow effect on snipers. Default is 1.
  • tfc_sniper_map_glow <0/1> : If this is enabled (1), glowing effect will not be set on snipers, during sniper maps ( all the mapnames who contains "sniper" . Ex: 2fortsniper ). Default is 1.
Source Code:

Code:
/*  * Copyright (c) 2006-2006 - Hugo LAFITTE <[email protected]>  *  *  *    TFC Sniper Glow v1.0  *  *  Ce plugin AMX MOD X spécifique au MOD Half-Life: Team Fortress Classic  *  vous permettra de désavantager les Franc-Tireurs sur votre serveur.  *  En effet ceux-ci seront colorés par le très connu effet Glow dans la  *  couleur de leur équipe. Toutes les équipes sont gérées: Bleue, Rouge,  *  Jaune et Verte. CE PLUGIN MARCHE UNIQUEMENT AVEC TEAM FORTRESS CLASSIC.  *  *  *  VERSION     :   1 . 0  *  MOD COMPATIBLE  :   TEAM FORTRESS CLASSIC  *  MODULES UTILISES    :   AMXMODX, FUN, ENGINE  *  *   *  TO-DO LIST:  *  -----------     Permettre de garder la couleur après que le joueur ait  *              utilisé un Teleporteur: lorsque l'on utilise un teleporteur  *              celui-ci ajoute un effet Glow sur votre corps durant quelques  *              minutes, et il remplace l'éventuel effet glow déjà présent avant  *              l'utilisation du teleporteur.  *  *  CVARS:  *  ------      tfc_sniper_glow <0/1> :  *  *                      Vous permet d'activer ou non l'effet Glow sur les Franc-Tireurs.  *  *              tfc_sniper_map_glow <0/1>:  *               *                      Si l'option est activée (1), lorsqu'une map contenant l'apellation  *                      "sniper" est chargée, l'effet glow sur les Franc-Tireurs est désactivé.  *  *  *  *  *  Je remercie tout spécialement CyberGuerrier <www.cyberguerrier.info> pour son aide.          *  */

TODO in future versions:
  • When a glowing user in TFC takes a teleporter, another glowing effect is added to the user, and the primary glow effect is replaced with the new effect. So, I have to make this: I have to get the "teleporter use" event in order to replace or take off the glowing effect of the teleporter.

I hope you'll like this plugin.
That's all.
Attached Files
File Type: rar amxx_tfc_sniper_glow.rar (3.8 KB, 682 views)
__________________
I'm sorry for the bad english I can sometime use.
My TFC Server: 80.248.208.208:27015


Last edited by GHW_Chronic; 08-08-2006 at 23:38.
GoGo_xD is offline
Send a message via MSN to GoGo_xD