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

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


Post New Thread Reply   
 
Thread Tools Display Modes
FlaminSarge
Veteran Member
Join Date: Jul 2010
Old 11-06-2010 , 15:01   Re: [TF2Items] Give Weapon (v1.4.1.1.0, 11/6/2010)
Reply With Quote #21

Updated to allow you to have a configs/tf2items.givecustom.txt file. Use the example on the main post attachments to make your own. First number is what index you want to define it as (e.g. 9001), classname is tf_weapon_*, meaning whatever its base classname is. index is the actual index of the weapon (e.g. blackbox is 228 ). quality 6 is unlockable, 5 is unusual, etc. Look up the tf2items extension thread for more quality setting info. Level is level, keep it under 127. Finally, Ammo is how much ammo you get when you /give it.

slot 0 is primary, 1 secondary, 2 melee, 3 is 4th slot, 4 is 5th slot, and 5 is for the engineer's building box.

attribs line is just a line of attributes separated by " ; ".
So you would just have the attrib index first, then the attrib value, and then the next attrib index, then the next attrib value. Don't put too many on there, the character limit for that is... 256?
Example: "attribs" "134 ; 19 ; 2 ; 999.0 ; 150 ; 1" would set attribute 134 to 19, 2 to 999, and 150 to 1 (heart effects, +99800% damage done, and turns to gold.

Also, disabled give_ex until it works right.
__________________
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-07-2010 at 21:08.
FlaminSarge is offline
Sorrowfire
Member
Join Date: Jul 2010
Location: <Missing String>
Old 11-07-2010 , 21:00   Re: [TF2Items] Give Weapon (v1.4.1.1.0, 11/6/2010)
Reply With Quote #22

Quote:
Originally Posted by FlaminSarge View Post
Updated to allow you to have a configs/tf2items.givecustom.txt file. Use the example on the main post attachments to make your own. First number is what index you want to define it as (e.g. 9001), classname is tf_weapon_*, meaning whatever its base classname is. index is the actual index of the weapon (e.g. blackbox is 22. quality 6 is unlockable, 5 is unusual, etc. Look up the tf2items extension thread for more quality setting info. Level is level, keep it under 127. Finally, Ammo is how much ammo you get when you /give it.

slot 0 is primary, 1 secondary, 2 melee, 3 is 4th slot, 4 is 5th slot, and 5 is for the engineer's building box.

attribs line is just a line of attributes separated by " ; ".
So you would just have the attrib index first, then the attrib value, and then the next attrib index, then the next attrib value. Don't put too many on there, the character limit for that is... 256?
Example: "attribs" "134 ; 19 ; 2 ; 999.0 ; 150 ; 1" would set attribute 134 to 19, 2 to 999, and 150 to 1 (heart effects, +99800% damage done, and turns to gold.

Also, disabled give_ex until it works right.
You might want to add that the turn to gold attribute only works on the wrench/golden wrench. (unless something changed i didn't know about)

But yeah, i like your progress with this Sarge, keep up the amazing work.

Ps: We will see who gets to the poker night items first after its out
But if you keep updating at this rate, i might not even be able to figure out the scripting anymore xP
Sorrowfire is offline
FlaminSarge
Veteran Member
Join Date: Jul 2010
Old 11-07-2010 , 21:07   Re: [TF2Items] Give Weapon (v1.4.1.1.0, 11/6/2010)
Reply With Quote #23

Turn to gold, 150 ; 1, only works on all engineer melee weapons. *clarification*
__________________
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
Snaggle
AlliedModders Donor
Join Date: Jul 2010
Location: England
Old 11-08-2010 , 03:13   Re: [TF2Items] Give Weapon (v1.4.1.1.0, 11/6/2010)
Reply With Quote #24

Awesome update FlamingSarge. Asherkins is nice but this is a much easier one to use.
Snaggle is offline
FlaminSarge
Veteran Member
Join Date: Jul 2010
Old 11-08-2010 , 17:08   Re: [TF2Items] Give Weapon (v1.4.1.1.0, 11/6/2010)
Reply With Quote #25

This one is asherkins. Major derp there. It's from his original giveitem plugin, with a couple updates.

Also, slight peeve, but its "FlaminSarge" not "FlamingSarge"...
__________________
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-08-2010 at 17:13.
FlaminSarge is offline
Skyrider
AMX Mod X Beta Tester
Join Date: May 2005
Location: Netherlands
Old 11-08-2010 , 19:52   Re: [TF2Items] Give Weapon (v1.4.1.1.0, 11/6/2010)
Reply With Quote #26

Bug report:

- Using teleports resets the weapon list.
__________________
Skyrider is offline
Send a message via AIM to Skyrider Send a message via MSN to Skyrider Send a message via Yahoo to Skyrider
Snaggle
AlliedModders Donor
Join Date: Jul 2010
Location: England
Old 11-09-2010 , 03:09   Re: [TF2Items] Give Weapon (v1.4.1.1.0, 11/6/2010)
Reply With Quote #27

Quote:
Originally Posted by FlaminSarge View Post
This one is asherkins. Major derp there. It's from his original giveitem plugin, with a couple updates.
Well, I meant in terms of the config it's easier to use than the one in Extensions, sorry about the name
Snaggle is offline
FlaminSarge
Veteran Member
Join Date: Jul 2010
Old 11-09-2010 , 18:27   Re: [TF2Items] Give Weapon (v1.4.1.1.0, 11/6/2010)
Reply With Quote #28

Quote:
Originally Posted by FF|Skyrider View Post
Bug report:

- Using teleports resets the weapon list.
What... does this mean? As in it shows "reloading tf2items give weapon list" or something when you take an engineer teleporter? Also if you could get a video up, that'd help.

It really shouldn't do that though. The weapon list doesn't touch the teleport event nor any other events...
In fact, the entire plugin doesn't touch the teleport event...
__________________
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
Skyrider
AMX Mod X Beta Tester
Join Date: May 2005
Location: Netherlands
Old 11-09-2010 , 19:42   Re: [TF2Items] Give Weapon (v1.4.1.1.0, 11/6/2010)
Reply With Quote #29

Quote:
Originally Posted by FlaminSarge View Post
What... does this mean? As in it shows "reloading tf2items give weapon list" or something when you take an engineer teleporter? Also if you could get a video up, that'd help.

It really shouldn't do that though. The weapon list doesn't touch the teleport event nor any other events...
In fact, the entire plugin doesn't touch the teleport event...
It means once you use a teleporter, the custom weapons you've given yourself disappears and you'll gain your own weapons back. At least it does for me every time I go through a teleporter.
__________________
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 11-09-2010 , 20:21   Re: [TF2Items] Give Weapon (v1.4.1.1.0, 11/6/2010)
Reply With Quote #30

Ohh... there must be some kind of respawn when a player teleports... I'll see what I can do about it. In the meantime, give again when you teleport. Sorry :C
__________________
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


Thread Tools
Display Modes

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 06:56.


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