Raised This Month: $ Target: $400
 0% 

[TF2 | Mapping & Gameplay] TrapKill


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Pootis Spencer Ere
Junior Member
Join Date: Nov 2011
Plugin ID:
3290
Plugin Version:
1.0
Plugin Category:
Gameplay
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Allows players to 'own' and receive kill credit from trigger_hurt map brushes.
    Old 10-14-2012 , 09:21   [TF2 | Mapping & Gameplay] TrapKill
    Reply With Quote #1

    I made this plugin for future use with some new 'surf' maps I intend to make.
    however, this plugin isn't limited to surf modes and may find use with other (or inspire new) modes as well.

    It allows players to 'own' and receive kill credit from >trigger_hurt map brushes.< ('traps')
    when a player is killed in a trap owned by another player:
    1. the traps' owner, sawblade icon and victim will be shown in the KillFeed
    2. the victim will be forced to gib
    3. score will be added to the trap's owner
    4. FreezeCam will zoom to the trap's owner

    How to use:
    In hammer editor, add your trigger_hurt brush and set it up however you want.
    name it, because you'll have to do some output programming:
    FireUser1 will set the trap owner to whoever activated the event (!activator) if the trap is owned by someone else, this will replace the owner.
    FireUser2 will set the trap owner to whoever activated the event (!activator) but ONLY if the trap is NOT owned by someone else.
    FireUser3 will remove the trap owner and the trigger_hurt will behave normally.


    Known bugs & issues:
    • Regardless of the trigger_hurt's damage type set by the map maker, all trap damage is forced as sawblade and players will be forced to gib.
      this is unavoidable (and unrealistic if your trap doesn't involve a sawblade) but it's used to distinguish a trap kill from a weapon-based kill.
    • While testing, I couldn't seem to get a trigger_hurt brush to destroy engineer buildings and therefore, could not capture the "object_destroyed" events properly.
      it is for this reason, all engineer buildings destroyed in a brush will not be credited to the trap's owner, score will not be added and the KillFeed will show normally.


    Requires SDKHooks
    Download attached SMX; online compile will fail
    Attached Files
    File Type: sp Get Plugin or Get Source (trapkill.sp - 295 views - 7.6 KB)
    File Type: smx trapkill.smx (5.2 KB, 261 views)
    __________________
    Common Aliases: Xyphos, [poni] Shutterfly, Pootis Spencer Ere

    Mapping & Gameplay: AddCond | AreaCond | TrapKill | TriggerHappy

    SlapTheStackers

    Last edited by Pootis Spencer Ere; 10-16-2012 at 12:00.
    Pootis Spencer Ere is offline
    Reply



    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 14:30.


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