Raised This Month: $51 Target: $400
 12% 

[TF2Items] Give Weapon (v3.14159, 11/29/2013)


Post New Thread Reply   
 
Thread Tools Display Modes
FlaminSarge
Veteran Member
Join Date: Jul 2010
Old 09-10-2011 , 20:11   Re: [TF2Items] Give Weapon (v3.04, 08/28/2011)
Reply With Quote #531

228? What?
228 is the black box...

You can only taunt with the black box as a soldier...
__________________
Bread EOTL GunMettle Invasion Jungle Inferno 64-bit 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
Sorrowfire
Member
Join Date: Jul 2010
Location: <Missing String>
Old 09-10-2011 , 20:59   Re: [TF2Items] Give Weapon (v3.04, 08/28/2011)
Reply With Quote #532

Quote:
Originally Posted by FlaminSarge View Post
Sorrowfire: I see that 215 actually does something now. Around the Hatless update, I had put it on a scattergun and it didn't shove them upwards at all. 216 seems wonky, too, apply look velocity on damage. It either doesn't shove them if they're on the ground, or shoves them sideways if they're in the air. If you're above them and they're in the air, they gain downwards velocity.

215 and -99999 doesn't seem to make them take fall damage :/

You should hop on my test server to help me test (bots are screwy)
Yeah the knock-back is a little odd, sometimes it works and sometimes it does. But i did manage to get it to work a little, here take this out for a try.

Code:
//The Maul 2.0
    SetTrieString(g_hItemInfoTrie, "1994_classname", "tf_weapon_fireaxe");
    SetTrieValue(g_hItemInfoTrie, "1994_index", 466);
    SetTrieValue(g_hItemInfoTrie, "1994_slot", 2);
    SetTrieValue(g_hItemInfoTrie, "1994_quality", 1);
    SetTrieValue(g_hItemInfoTrie, "1994_level", 5);
    SetTrieString(g_hItemInfoTrie, "1994_attribs", "215 ; 2500 ; 177 ; 1.75 ; 2 ; 1.35 ; 216 ; 7000");
    SetTrieValue(g_hItemInfoTrie, "1994_ammo", -1);
Or this one

Code:
//The Knockback Stick
    SetTrieString(g_hItemInfoTrie, "1993_classname", "tf_weapon_bat_wood");
    SetTrieValue(g_hItemInfoTrie, "1993_index", 154);
    SetTrieValue(g_hItemInfoTrie, "1993_slot", 2);
    SetTrieValue(g_hItemInfoTrie, "1993_quality", 2);
    SetTrieValue(g_hItemInfoTrie, "1993_level", 27);
    SetTrieString(g_hItemInfoTrie, "1993_attribs", "215 ; 5000 ; 216 ; 9000 ; 201 ; 2.5 ; 197 ; 1993 ; 1 ; 0.05 ; 134 ; 18 ; 38 ; 1");
    SetTrieValue(g_hItemInfoTrie, "1993_ammo", -1);
Ps: Use the 2nd one because it won't one-shot people :\ I kinda was messing around with the other one which is fun xP because it sends people flying crazy far if they don't die from it.

EDIT: After Sarge decided to start giving me one heck of a talk for posting the weapon setup as the Plugin Configured version for the source (And threatening me that he would re-write the whole setup and make it harder), i was convinced to start using the config instead. So here are the above weapons in "Simplistic Forum".

Code:
"custom_give_weapons_vlolz"
{
    "1993"
    {
        "classname"        "tf_weapon_bat_wood"
        "index"        "154"
        "slot"        "2"
        "quality"        "2"
        "level"        "27"
        "attribs"        "215 ; 5000 ; 216 ; 9000 ; 201 ; 2.5 ; 197 ; 1993 ; 1 ; 0.05 ; 134 ; 18 ; 38 ; 1"
        "ammo"        "-1"
    }
    "1994"
    {
        "classname"        "tf_weapon_fireaxe"
        "index"        "466"
        "slot"        "2"
        "quality"        "1"
        "level"        "5"
        "attribs"        "215 ; 2500 ; 177 ; 1.75 ; 2 ; 1.35 ; 216 ; 7000"
        "ammo"        "-1"
    }
}
__________________
"What do you mean SourcePawn doesn't count as a 2nd language?"

Last edited by Sorrowfire; 09-10-2011 at 22:36. Reason: For my own "safety"
Sorrowfire is offline
portalmods124
Member
Join Date: Sep 2011
Old 09-10-2011 , 22:31   Re: [TF2Items] Give Weapon (v3.04, 08/28/2011)
Reply With Quote #533

Quote:
Originally Posted by FlaminSarge View Post
228? What?
228 is the black box...

You can only taunt with the black box as a soldier...
I know. I can't do that with the soldier. I cant taunt-kill with the engi with frontier justice
__________________
portalmods124 is offline
FlaminSarge
Veteran Member
Join Date: Jul 2010
Old 09-11-2011 , 08:42   Re: [TF2Items] Give Weapon (v3.04, 08/28/2011)
Reply With Quote #534

Quote:
Originally Posted by Sorrowfire View Post
Yeah the knock-back is a little odd, sometimes it works and sometimes it does. But i did manage to get it to work a little, here take this out for a try.

Code:
//The Maul 2.0
    SetTrieString(g_hItemInfoTrie, "1994_classname", "tf_weapon_fireaxe");
    SetTrieValue(g_hItemInfoTrie, "1994_index", 466);
    SetTrieValue(g_hItemInfoTrie, "1994_slot", 2);
    SetTrieValue(g_hItemInfoTrie, "1994_quality", 1);
    SetTrieValue(g_hItemInfoTrie, "1994_level", 5);
    SetTrieString(g_hItemInfoTrie, "1994_attribs", "215 ; 2500 ; 177 ; 1.75 ; 2 ; 1.35 ; 216 ; 7000");
    SetTrieValue(g_hItemInfoTrie, "1994_ammo", -1);
Or this one

Code:
//The Knockback Stick
    SetTrieString(g_hItemInfoTrie, "1993_classname", "tf_weapon_bat_wood");
    SetTrieValue(g_hItemInfoTrie, "1993_index", 154);
    SetTrieValue(g_hItemInfoTrie, "1993_slot", 2);
    SetTrieValue(g_hItemInfoTrie, "1993_quality", 2);
    SetTrieValue(g_hItemInfoTrie, "1993_level", 27);
    SetTrieString(g_hItemInfoTrie, "1993_attribs", "215 ; 5000 ; 216 ; 9000 ; 201 ; 2.5 ; 197 ; 1993 ; 1 ; 0.05 ; 134 ; 18 ; 38 ; 1");
    SetTrieValue(g_hItemInfoTrie, "1993_ammo", -1);
Ps: Use the 2nd one because it won't one-shot people :\ I kinda was messing around with the other one which is fun xP because it sends people flying crazy far if they don't die from it.

EDIT: After Sarge decided to start giving me one heck of a talk for posting the weapon setup as the Plugin Configured version for the source (And threatening me that he would re-write the whole setup and make it harder), i was convinced to start using the config instead. So here are the above weapons in "Simplistic Forum".

Code:
"custom_give_weapons_vlolz"
{
    "1993"
    {
        "classname"        "tf_weapon_bat_wood"
        "index"        "154"
        "slot"        "2"
        "quality"        "2"
        "level"        "27"
        "attribs"        "215 ; 5000 ; 216 ; 9000 ; 201 ; 2.5 ; 197 ; 1993 ; 1 ; 0.05 ; 134 ; 18 ; 38 ; 1"
        "ammo"        "-1"
    }
    "1994"
    {
        "classname"        "tf_weapon_fireaxe"
        "index"        "466"
        "slot"        "2"
        "quality"        "1"
        "level"        "5"
        "attribs"        "215 ; 2500 ; 177 ; 1.75 ; 2 ; 1.35 ; 216 ; 7000"
        "ammo"        "-1"
    }
}
There was no threatening -.- I have a log of the conversation. I just said I'd eat you. Eating you has nothing to do with the plugin.

I spent a lot of effort making the custom config possible T_T

portalmods: check other plugins conflicting with taunts.
__________________
Bread EOTL GunMettle Invasion Jungle Inferno 64-bit 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
Sorrowfire
Member
Join Date: Jul 2010
Location: <Missing String>
Old 09-11-2011 , 12:31   Re: [TF2Items] Give Weapon (v3.04, 08/28/2011)
Reply With Quote #535

Lol, ok, fair enough Sarge... though i really had rather not be eaten! & i didn't mean any offense to you or the effort you put into your custom config .-.
__________________
"What do you mean SourcePawn doesn't count as a 2nd language?"
Sorrowfire is offline
FlaminSarge
Veteran Member
Join Date: Jul 2010
Old 09-11-2011 , 23:19   Re: [TF2Items] Give Weapon (v3.05, 09/11/2011)
Reply With Quote #536

Updated 9/11/11

Also added a section in the original post, "how to do custom weapons"
__________________
Bread EOTL GunMettle Invasion Jungle Inferno 64-bit 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; 09-11-2011 at 23:39.
FlaminSarge is offline
Sorrowfire
Member
Join Date: Jul 2010
Location: <Missing String>
Old 09-12-2011 , 15:42   Re: [TF2Items] Give Weapon (v3.05, 09/11/2011)
Reply With Quote #537

Quote:
Originally Posted by FlaminSarge View Post
Updated 9/11/11

Also added a section in the original post, "how to do custom weapons"
Aww, you added that section just for me? So as to make me put everything i make into the plugin that way. How nice

Lol, well minus the above joke out of boredom and back on topic. I was wondering if you ever messed around with the melee range attribute? (Id: 264) Its really fun to punch someone across the map. (Especially when your bored)
PS: I also wanted to add that the knock-back attribute i mentioned earlier will apply to the sandman's stun ball, which is extremely funny when it hits someone
__________________
"What do you mean SourcePawn doesn't count as a 2nd language?"
Sorrowfire is offline
FlaminSarge
Veteran Member
Join Date: Jul 2010
Old 09-12-2011 , 21:38   Re: [TF2Items] Give Weapon (v3.05, 09/11/2011)
Reply With Quote #538

Indeed I have. I have an awesome pan that I use on melee maps. + fire rate, - almost 100% damage, and - melee bounds, + melee range
(bounds are the width of the swing)

I also already did the sandman ball thing. It's currently a donator weapon on some server somewhere, cuz I told a guy to add it.

Also, "The Long Shot", it's a +400% Melee Range knife that swings 3 times as slow and -30% damage.
__________________
Bread EOTL GunMettle Invasion Jungle Inferno 64-bit 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; 09-12-2011 at 21:40.
FlaminSarge is offline
Vox Dei
Junior Member
Join Date: Sep 2011
Location: Chattanooga, TN
Old 09-23-2011 , 16:50   Re: [TF2Items] Give Weapon (v3.05, 09/11/2011)
Reply With Quote #539

Is there a way to adjust who gets the weapon by class?
Vox Dei is offline
FlaminSarge
Veteran Member
Join Date: Jul 2010
Old 09-23-2011 , 19:55   Re: [TF2Items] Give Weapon (v3.05, 09/11/2011)
Reply With Quote #540

If you mean custom targetting, only sourcemod 1.4 has custom targetting support (in which you can add a plugin that adds the targets @scouts, etc).

If you're using the native (e.g. coding your own plugin that calls this plugin's functions) then you can check against TF2_GetPlayerClass(client).
__________________
Bread EOTL GunMettle Invasion Jungle Inferno 64-bit 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 02:06.


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