AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   TF2Items (https://forums.alliedmods.net/forumdisplay.php?f=146)
-   -   So how do tf2items work? (https://forums.alliedmods.net/showthread.php?t=171429)

atticusmas 11-05-2011 18:37

So how do tf2items work?
 
What exactly does tf2items do, as an extension, other than tying in with giveweapon? From what little i understand, you can change what your weapons do? or something?

DarthNinja 11-05-2011 22:59

Re: So how do tf2items work?
 
It lets you change/remove/add attributes of items.

atticusmas 11-06-2011 18:02

Re: So how do tf2items work?
 
Quote:

Originally Posted by DarthNinja (Post 1591007)
It lets you change/remove/add attributes of items.

So in the custom weapons folder, i use the template and i can customize the item? What about if i want to make everyones hats have a particle effect? Would the hats still be visible? can you even put a particle effect?

DarthNinja 11-06-2011 19:17

Re: So how do tf2items work?
 
Quote:

Originally Posted by atticusmas (Post 1591526)
So in the custom weapons folder, i use the template and i can customize the item? What about if i want to make everyones hats have a particle effect? Would the hats still be visible? can you even put a particle effect?

Folder?
What about it?
Yes.
Yes.

atticusmas 11-09-2011 23:04

Re: So how do tf2items work?
 
Quote:

Originally Posted by DarthNinja (Post 1591564)
Folder?
What about it?
Yes.
Yes.

I meant the file

Leonardo 11-11-2011 12:00

Re: So how do tf2items work?
 
you can change attributes for all items at same time.
if you want only for hats, you should change attributes for each item/hat

atticusmas 11-13-2011 00:03

Re: So how do tf2items work?
 
okay so how would i make it so donators can get-i dunno like-a gastly gibus that has sunbeams?

serpentine 11-13-2011 07:26

Re: So how do tf2items work?
 
Code:

"custom_weapons_v3"
{
        "*"
        {
                "116"
                {
                        "admin-flags" "o"
                        "preserve-attributes"        "1"
                       
                        "1"                                "134 ; 17"
                }
        }
}

paste that in your tf2items.weapons.txt file. Assuming your donators have the flag "o".

atticusmas 11-15-2011 00:01

Re: So how do tf2items work?
 
thanks!
and im assuming that it will only work if you have gastly gibus equipped?
Okay so i connected and i realized that i dont actually have a gastly gibus :/ so how would i edit it to be a gastlier or gastlierest gibus?

EDIT: im so smart. I DID IT!!!

Snaggle 11-20-2011 15:05

Re: So how do tf2items work?
 
You should post what you did so others can figure out their problems too :)

On my server we give extra firing speed and particle effects to nice players. Though I wouldn't advise anything gamebreaking on a regular server!

serpentine 11-21-2011 17:38

Re: So how do tf2items work?
 
#116 Ghastly.
#279 Ghastlier.
#584 Ghastliest.

I believe. Just as simple as changing the item number, or adding effects for all three types. Like has been said multiple times, all the information you need is in your items_game.txt file in /tf/scripts/items folder. Have fun!

RejectedShotgun 12-27-2011 13:30

Re: So how do tf2items work?
 
I am new t this too and I understand the quality etc, but how can I specify what effect I want?

ph 01-07-2012 16:56

Re: So how do tf2items work?
 
Is it possible to have 2 effects at once? How would it be coded for example?

Quote:

Originally Posted by serpentine (Post 1595857)
Code:

"custom_weapons_v3"
{
    "*"
    {
        "116"
        {
            "admin-flags" "o"
            "preserve-attributes"    "1"
           
            "1"                "134 ; 17"
        }
    }
}

paste that in your tf2items.weapons.txt file. Assuming your donators have the flag "o".


Roundcat 03-19-2012 11:56

Re: So how do tf2items work?
 
what does the number 17 relate to in this example? I mean I know it is the value of the attribute - but where is there a list which associates the number 17 with the sunbeam effect?

serpentine 03-19-2012 12:53

Re: So how do tf2items work?
 
Quote:

Originally Posted by Roundcat (Post 1671917)
what does the number 17 relate to in this example? I mean I know it is the value of the attribute - but where is there a list which associates the number 17 with the sunbeam effect?

In your items_game text file in tf/scripts/items.

Happy DODs player 04-01-2012 04:28

Re: So how do tf2items work?
 
1 Attachment(s)
I installed the package, all is loaded fine.

[ Using this also with the BOTS-weapons plugin from Leonardo ]

I have added this in the txt file and restarted my gameserver: Look at the screeny

But i do not have any particles ingame.

Am i doing anything wrong here.

This is for the hats :

#116 Ghastly.
#279 Ghastlier.
#584 Ghastliest.

[ Uhm, this will problerly will only shown if i go thirdperson my self, with a plugin or such., i read this afternoon 140+ pages on the Items plugin. Correct me if i worng. : ) ]

napalm00 04-01-2012 16:32

Re: So how do tf2items work?
 
Quote:

Originally Posted by Happy DODs player (Post 1679707)
I installed the package, all is loaded fine.

[ Using this also with the BOTS-weapons plugin from Leonardo ]

I have added this in the txt file and restarted my gameserver: Look at the screeny

But i do not have any particles ingame.

Am i doing anything wrong here.

This is for the hats :

#116 Ghastly.
#279 Ghastlier.
#584 Ghastliest.

[ Uhm, this will problerly will only shown if i go thirdperson my self, with a plugin or such., i read this afternoon 140+ pages on the Items plugin. Correct me if i worng. : ) ]

(Let's see if I can ninja asherkin)
You have to put all the indexes under the same one wildcard, so:
Code:

"*"
{
  "index"
  {
  stuff
  }
  "index2"
  {
  morestuff
  }
  etc etc
}

The wildcard applies to everybody, so having more wildcards like in your example is wrong.

EDIT:
Also not completely sure but I don't think it will work with preserve-attributes set to 1. If it still doesn't work after fixing the wildcards, then it's most likely that you have to set it to 0.

Happy DODs player 04-02-2012 09:40

Re: So how do tf2items work?
 
Hi Napalm00,

Mmmm,

So if i want a Effect for everybody on my server on several hats,

this would be what i need to copy past in my file and restart server/pluginload and it should work..?

Or do i need to copy or edit somethings more? I appriciate the help verymuch.

"*"
{

"116" //Ghastly
{
"1" "134 ; 2" //particle effect
}
"279" //Ghastlier
{
"1" "134 ; 2" //particle effect
}

}

napalm00 04-02-2012 10:16

Re: So how do tf2items work?
 
Quote:

Originally Posted by Happy DODs player (Post 1680500)
Hi Napalm00,

Mmmm,

So if i want a Effect for everybody on my server on several hats,

this would be what i need to copy past in my file and restart server/pluginload and it should work..?

Or do i need to copy or edit somethings more? I appriciate the help verymuch.

"*"
{

"116" //Ghastly
{
"1" "134 ; 2" //particle effect
}
"279" //Ghastlier
{
"1" "134 ; 2" //particle effect
}

}

Exactly, just like that, though it looks better wrapped around "CODE" tags:
Code:

"*"
{
  "116"  //Ghastly
  {
  "1"    "134 ; 2" //particle effect
  }
  "279" //Ghastlier
  {
  "1"    "134 ; 2" //particle effect
  }
}

Also, no server/plugin reload is needed. Just type "tf2items_manager_reload" in either the ingame console or the rcon one.

Happy DODs player 04-02-2012 13:23

Re: So how do tf2items work?
 
GOT it working.

Greatstuff. Gives a nice twist on our game-server.

Thank you for your repleys.


And if i want to give this torwards my DONORS only i just put in the text as i did below right/?


Code:


"*"
{
  "116"  //Ghastly
  {
  "admin-flags" "a"
  "1"    "134 ; 2" //particle effect
  }
  "279" //Ghastlier
  {
  "admin-flags" "a"
  "1"    "134 ; 2" //particle effect
  }
}


napalm00 04-02-2012 15:12

Re: So how do tf2items work?
 
Exactly :D


All times are GMT -4. The time now is 21:14.

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