AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [TF2] Jar of Ants (v1.1 11/18/2011) (https://forums.alliedmods.net/showthread.php?t=149150)

FlaminSarge 02-02-2011 23:57

[TF2] Jar of Ants (v1.1 11/18/2011)
 
2 Attachment(s)
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.

Night Fury 02-03-2011 11:45

Re: [TF2] Jar of Ants
 
Hmm... Can you make it like this : http://forums.alliedmods.net/showthread.php?p=1361123

FlaminSarge 02-03-2011 22:03

Re: [TF2] Jar of Ants
 
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.

Night Fury 02-04-2011 02:12

Re: [TF2] Jar of Ants
 
Ok thx. I like your work! :D

Skyrider 02-04-2011 18:13

Re: [TF2] Jar of Ants
 
Quote:

antjar_duration

00:13:42 Unknown command "antjar_duration"
That is all :)

FlaminSarge 02-05-2011 00:43

Re: [TF2] Jar of Ants
 
It's a cvar not a command.
sm_cvar antjar_duration 10000.0

etc.

obligatory "lrn2sawcemad"

Mecha the Slag 04-18-2011 08:53

Re: [TF2] Jar of Ants
 
GetUserMessageId("player_jarated") seems to be returning INVALID_MESSAGE_ID now, anyone aware of why that is?

psychonic 04-18-2011 09:00

Re: [TF2] Jar of Ants
 
Quote:

Originally Posted by Mecha the Slag (Post 1452809)
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".

Mecha the Slag 04-18-2011 09:11

Re: [TF2] Jar of Ants
 
oh ffff

my bad D:

FlaminSarge 04-18-2011 21:34

Re: [TF2] Jar of Ants
 
You're using this for the sunshine in a bag -.- where's my self-made one? :P


All times are GMT -4. The time now is 02:01.

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