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

[TF2] Jar of Ants (v1.1 11/18/2011)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
FlaminSarge
Veteran Member
Join Date: Jul 2010
Plugin ID:
2208
Plugin Version:
1.1
Plugin Category:
Gameplay
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Lets admins set players to throw ant jars instead of jarate
    Old 02-02-2011 , 23:57   [TF2] Jar of Ants (v1.1 11/18/2011)
    Reply With Quote #1

    Basic concept: Enable the jar of ants on a client, and when they throw jarate at people, it won't cover them in piss. It will make them BLEED. Because ants are biting them. Angry ants.

    Commands:
    sm_antjar <target> <0/1> (default CHEATS flag): sets a client to throw a jar of ants instead of jarate.

    CVars:
    antjar_duration (default 10.0): How long they bleed for.

    Planned Features:
    *sm_jarofants command or something to allow players to enable on self.
    *A convar to allow it for milk, etc.

    CHANGELOG
    Code:
    11/18/2011(v1.1)
    *Updated to use SM 1.4 stuffs.
    02/02/2011 (v1.0)
    *First release
    Credits:
    psychonic - how to find the playerjarated event when it refuses to fire serverside

    FOR THE RECORD: I didn't notice this until about four minutes after I posted this.
    I made this as a feature for the Advanced Weaponiser mod by Mecha the Slag, I figured it would work well as its own plugin.

    Also for those using Giveweapon/Randomizer, the Jar of Ants will be its own weapon, and won't require this plugin.
    Attached Files
    File Type: sp Get Plugin or Get Source (antjar.sp - 1435 views - 4.2 KB)
    __________________
    Bread EOTL GunMettle Invasion Jungle Inferno will break everything. Don't even ask.

    All plugins: Randomizer/GiveWeapon, ModelManager, etc.
    Post in plugin threads with questions.
    Steam is for playing games.
    You will be fed to javalia otherwise.
    Psyduck likes replays.

    Last edited by FlaminSarge; 11-19-2011 at 00:00.
    FlaminSarge is offline
    Night Fury
    Junior Member
    Join Date: Jul 2010
    Old 02-03-2011 , 11:45   Re: [TF2] Jar of Ants
    Reply With Quote #2

    Hmm... Can you make it like this : http://forums.alliedmods.net/showthread.php?p=1361123
    __________________
    My English HORROR! Excuse me for this GG
    Night Fury is offline
    FlaminSarge
    Veteran Member
    Join Date: Jul 2010
    Old 02-03-2011 , 22:03   Re: [TF2] Jar of Ants
    Reply With Quote #3

    I guess...

    It'd have to make SDKHooks required though...
    And it'd be kinda hard to do, but whatever, I'll try.

    Plus, with jarate if you throw it in a crowd they all get covered anyways.
    __________________
    Bread EOTL GunMettle Invasion Jungle Inferno will break everything. Don't even ask.

    All plugins: Randomizer/GiveWeapon, ModelManager, etc.
    Post in plugin threads with questions.
    Steam is for playing games.
    You will be fed to javalia otherwise.
    Psyduck likes replays.
    FlaminSarge is offline
    Night Fury
    Junior Member
    Join Date: Jul 2010
    Old 02-04-2011 , 02:12   Re: [TF2] Jar of Ants
    Reply With Quote #4

    Ok thx. I like your work!
    __________________
    My English HORROR! Excuse me for this GG
    Night Fury is offline
    Skyrider
    AMX Mod X Beta Tester
    Join Date: May 2005
    Location: Netherlands
    Old 02-04-2011 , 18:13   Re: [TF2] Jar of Ants
    Reply With Quote #5

    Quote:
    antjar_duration

    00:13:42 Unknown command "antjar_duration"
    That is all
    __________________
    Skyrider is offline
    Send a message via AIM to Skyrider Send a message via MSN to Skyrider Send a message via Yahoo to Skyrider
    FlaminSarge
    Veteran Member
    Join Date: Jul 2010
    Old 02-05-2011 , 00:43   Re: [TF2] Jar of Ants
    Reply With Quote #6

    It's a cvar not a command.
    sm_cvar antjar_duration 10000.0

    etc.

    obligatory "lrn2sawcemad"
    __________________
    Bread EOTL GunMettle Invasion Jungle Inferno will break everything. Don't even ask.

    All plugins: Randomizer/GiveWeapon, ModelManager, etc.
    Post in plugin threads with questions.
    Steam is for playing games.
    You will be fed to javalia otherwise.
    Psyduck likes replays.
    FlaminSarge is offline
    Mecha the Slag
    Veteran Member
    Join Date: Jun 2009
    Location: Denmark
    Old 04-18-2011 , 08:53   Re: [TF2] Jar of Ants
    Reply With Quote #7

    GetUserMessageId("player_jarated") seems to be returning INVALID_MESSAGE_ID now, anyone aware of why that is?
    __________________
    Mecha the Slag is offline
    psychonic

    BAFFLED
    Join Date: May 2008
    Old 04-18-2011 , 09:00   Re: [TF2] Jar of Ants
    Reply With Quote #8

    Quote:
    Originally Posted by Mecha the Slag View Post
    GetUserMessageId("player_jarated") seems to be returning INVALID_MESSAGE_ID now, anyone aware of why that is?
    Because the usermessage is (and has always been) "PlayerJarated".
    psychonic is offline
    Mecha the Slag
    Veteran Member
    Join Date: Jun 2009
    Location: Denmark
    Old 04-18-2011 , 09:11   Re: [TF2] Jar of Ants
    Reply With Quote #9

    oh ffff

    my bad D:
    __________________
    Mecha the Slag is offline
    FlaminSarge
    Veteran Member
    Join Date: Jul 2010
    Old 04-18-2011 , 21:34   Re: [TF2] Jar of Ants
    Reply With Quote #10

    You're using this for the sunshine in a bag -.- where's my self-made one?
    __________________
    Bread EOTL GunMettle Invasion Jungle Inferno will break everything. Don't even ask.

    All plugins: Randomizer/GiveWeapon, ModelManager, etc.
    Post in plugin threads with questions.
    Steam is for playing games.
    You will be fed to javalia otherwise.
    Psyduck likes replays.
    FlaminSarge 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:31.


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