Raised This Month: $32 Target: $400
 8% 

Only-Melee


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Aviram1994
Member
Join Date: Jan 2007
Plugin ID:
402
Plugin Version:
1.00
Plugin Category:
Fun Stuff
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    This will let you to enable Only-Melee Mode that players can only use melee weapons.
    Old 05-30-2008 , 19:56   Only-Melee
    Reply With Quote #1

    Uses the newest snapshot,
    CVARs for usage:
    sm_onlymelee 1/0
    How it works:
    when enabled every round start it removes the supply locker so you cant get any weapons and it take your weapons.
    Credits to Tsunami for the entity disable,
    and other ppl like predcrab that was trying to help .
    Attached Files
    File Type: sp Get Plugin or Get Source (OnlyMelee.sp - 6817 views - 1.9 KB)

    Last edited by Aviram1994; 06-04-2008 at 11:12.
    Aviram1994 is offline
    chundo
    Senior Member
    Join Date: May 2008
    Old 05-31-2008 , 10:41   Re: Only-Melee
    Reply With Quote #2

    Seems like a direct copy of the melee code from Sudden Death Melee Redux? Which is fine since it serves a new purpose, but there should be some attribution.

    Also, be aware that with all these melee-only plugins there exists a exploit where the user can try to change class while in spawn to the same class they are now, and the game will give them back all their weapons. This action generates no events, so it can't be stopped to the best of my knowledge. In the melee plugin I wrote for my server the only solution I found was to use a recurring timer to strip weapons every second while melee mode is activated.

    A nice enhancement would be to re-enable weapons if melee mode is shut off (hackish, but easiest to do with TF2_RespawnPlayer then TeleportEntity - in my testing user doesn't notice anything happened, but they get all weapons back).

    Last edited by chundo; 05-31-2008 at 11:14.
    chundo is offline
    Aviram1994
    Member
    Join Date: Jan 2007
    Old 05-31-2008 , 23:05   Re: Only-Melee
    Reply With Quote #3

    http://wiki.alliedmods.net/Team_Fort...er_changeclass
    You can use it to get when he changes his class :S
    and FYI,
    Your respawn when you change class,
    Try to change class in the room in the corner,
    You'll see you'll respawn somewhere in the middle.
    edit:
    Just noticed you said for same class,
    I'm still pretty sure its counting as respawn too.

    Last edited by Aviram1994; 06-01-2008 at 00:21.
    Aviram1994 is offline
    chundo
    Senior Member
    Join Date: May 2008
    Old 06-01-2008 , 00:25   Re: Only-Melee
    Reply With Quote #4

    Quote:
    Originally Posted by Aviram1994 View Post
    Just noticed you said for same class,
    I'm still pretty sure its counting as respawn too.
    Nope, no events for that specific case - that's the problem. I've tested it up and down, with 3 or 4 possible events that it would fire - no notification. Try it on your plugin, I'm quite sure you'll see the same problem.
    chundo is offline
    DontWannaName
    Veteran Member
    Join Date: Jun 2007
    Location: VALVe Land, WA
    Old 10-23-2008 , 23:40   Re: Only-Melee
    Reply With Quote #5

    This plugin is broken and should be disabled. Players can switch classes a few times to get the weapons. I wish the locker cabinets would disable and then re-enable when turned off.
    __________________

    DontWannaName 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 12:08.


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