Raised This Month: $87 Target: $400
 21% 

[TF2] No party pooper (v0.1, 2013-08-24)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Syranolic
Junior Member
Join Date: Aug 2013
Location: Sweden
Plugin ID:
3853
Plugin Version:
0.1
Plugin Category:
Gameplay
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Induces a slight penalty for killing from or into the party room.
    Old 08-24-2013 , 10:03   [TF2] No party pooper (v0.1, 2013-08-24)
    Reply With Quote #1

    No party pooper
    • Description

      The rule "Don't kill in the party room" was a source of contention on some maps that are supposed to be fun. This plugin seem to have improved the situation on my server in an unobstrusive, tolerant and, when needed, effective way. I believe that it is a good complement to the "No kill zone" and "Friendly mode".

    • Function

      • The protected zone is defined as a cube aligned with the 3 axis.
      • The plugin is active if either the victim or the attacker (or its sentry) are in the protected zone.
      • The attacker receives a centered warning message on every hit.
      • The victim becomes invisible to sentries for a set time on every hit.
      • The attacker is stunned on kill.
      • The attacker is kicked on domination.

    • CVARs

      • sm_nopartypooper_version plugin version.
      • sm_nopartypooper_enabled (def. "1") min. 0 max. 1, set to 0 to disable nopartypooper.
      • sm_nopartypooper_xmin (def. "0.0"), minimum coordinate of the cube along X.
      • sm_nopartypooper_xmax (def. "0.0"), maximum coordinate of the cube along X.
      • sm_nopartypooper_ymin (def. "0.0"), minimum coordinate of the cube along Y.
      • sm_nopartypooper_ymax (def. "0.0"), maximum coordinate of the cube along Y.
      • sm_nopartypooper_zmin (def. "0.0"), minimum coordinate of the cube along Z.
      • sm_nopartypooper_zmax (def. "0.0"), maximum coordinate of the cube along Z.
      • sm_nopartypooper_warnmsg (def. "Don't kill in party room!"), Message to display as a warning.
      • sm_nopartypooper_kickmsg (def. "Don't kill in party room!"), message to display as a kick reason.
      • sm_nopartypooper_dommsg (def. "You got dominated in the party room, your opponent will be kicked."), hint to display to a dominated player.
      • sm_nopartypooper_killmsg (def. "You got killed in the party room, your opponent will be stunned."), hint to display to a killed player.
      • sm_nopartypooper_speed (def. "0.25") min. 0.0 max. 1.0, how much slower should the attacker be after a kill (nominal speed factor deduction).
      • sm_nopartypooper_stunned (def. "15.0") min. 0.5 max. 60.0, how long should the attacker be stunned after a kill (in seconds).
      • sm_nopartypooper_invisible (def. "4.0") min. 0.5 max. 10.0, how long should the victim be invisible to sentries after a hit (in seconds).

    • Usage

      In server.cfg, you might want to set sm_nopartypooper_enabled to 0. This will keep it deactivated for any irrelevant map.
      In dm_mariokart2_b3.cfg, you can define the zone and activate the plugin:
      Code:
      sm_nopartypooper_enabled	1
      sm_nopartypooper_xmin		-1150.0
      sm_nopartypooper_xmax		1150.0
      sm_nopartypooper_ymin		-735.0
      sm_nopartypooper_ymax		735.0
      sm_nopartypooper_zmin		385.0
      sm_nopartypooper_zmax		770.0
      
      sm_nopartypooper_kickmsg	"Don't kill in the party room!"
      sm_nopartypooper_warnmsg	"Don't kill in the party room! Type /motd to read the rules."
      sm_nopartypooper_killmsg	"You got killed in the party room, your opponent is stunned."
      sm_nopartypooper_dommsg		"You got dominated in the party room, your opponent was kicked."
    • Download
    Attached Files
    File Type: sp Get Plugin or Get Source (nopartypooper.sp - 310 views - 14.1 KB)

    Last edited by Syranolic; 08-25-2013 at 05:00.
    Syranolic is offline
    prom3th3an
    SourceMod Donor
    Join Date: Jun 2010
    Old 08-24-2013 , 21:11   Re: [TF2] No party pooper (v0.1, 2013-08-24)
    Reply With Quote #2

    Remove the compiled .smx
    Plugins which compile using the web compiler should not have a seperate smx uploaded, just upload the .sp file.
    prom3th3an is offline
    Reply


    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 06:57.


    Powered by vBulletin®
    Copyright ©2000 - 2019, vBulletin Solutions, Inc.
    Theme made by Freecode