AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [TF2Items] Give Weapon (v3.14159, 11/29/2013) (https://forums.alliedmods.net/showthread.php?t=141962)

FlaminSarge 11-06-2010 15:01

Re: [TF2Items] Give Weapon (v1.4.1.1.0, 11/6/2010)
 
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.

Sorrowfire 11-07-2010 21:00

Re: [TF2Items] Give Weapon (v1.4.1.1.0, 11/6/2010)
 
Quote:

Originally Posted by FlaminSarge (Post 1343355)
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.

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 :P
But if you keep updating at this rate, i might not even be able to figure out the scripting anymore xP

FlaminSarge 11-07-2010 21:07

Re: [TF2Items] Give Weapon (v1.4.1.1.0, 11/6/2010)
 
Turn to gold, 150 ; 1, only works on all engineer melee weapons. *clarification*

Snaggle 11-08-2010 03:13

Re: [TF2Items] Give Weapon (v1.4.1.1.0, 11/6/2010)
 
Awesome update FlamingSarge. Asherkins is nice but this is a much easier one to use.

FlaminSarge 11-08-2010 17:08

Re: [TF2Items] Give Weapon (v1.4.1.1.0, 11/6/2010)
 
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"...

Skyrider 11-08-2010 19:52

Re: [TF2Items] Give Weapon (v1.4.1.1.0, 11/6/2010)
 
Bug report:

- Using teleports resets the weapon list.

Snaggle 11-09-2010 03:09

Re: [TF2Items] Give Weapon (v1.4.1.1.0, 11/6/2010)
 
Quote:

Originally Posted by FlaminSarge (Post 1345408)
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 :P

FlaminSarge 11-09-2010 18:27

Re: [TF2Items] Give Weapon (v1.4.1.1.0, 11/6/2010)
 
Quote:

Originally Posted by FF|Skyrider (Post 1345516)
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...

Skyrider 11-09-2010 19:42

Re: [TF2Items] Give Weapon (v1.4.1.1.0, 11/6/2010)
 
Quote:

Originally Posted by FlaminSarge (Post 1346241)
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.

FlaminSarge 11-09-2010 20:21

Re: [TF2Items] Give Weapon (v1.4.1.1.0, 11/6/2010)
 
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


All times are GMT -4. The time now is 06:38.

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