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

VSH Weapon stats


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Pootis McPootbird
Junior Member
Join Date: Aug 2018
Old 09-16-2018 , 12:48   Weapon stats
Reply With Quote #1

Hello everyone! I'm a staff member of a VSH server, and I've recently been granted the permission to modify weapons stats. Unfortunately, I'm not sure if I need to use the TF2Items plugin or something else in order to modify weapon stats for VSH, and I don't know how to recognise the custom stats, like the "Rage removed per hit" stat on the Fan O'War.

If anyone can offer me some help, I would greatly appreciate it.

Last edited by Pootis McPootbird; 09-16-2018 at 12:48.
Pootis McPootbird is offline
JuegosPablo
Veteran Member
Join Date: Feb 2016
Location: Gravity is a Harness
Old 09-17-2018 , 01:50   Re: Weapon stats
Reply With Quote #2

to edit the stats of weapons need edit the sp of VSH/FF2
__________________
My Youtube Channel
Steam Profile
My Discord: JuegosPablo#0568
JuegosPablo is offline
Pootis McPootbird
Junior Member
Join Date: Aug 2018
Old 09-17-2018 , 10:45   Re: Weapon stats
Reply With Quote #3

Alright, now I found the file and I see tons of lines of code. At about what line should I find the weapon stats?
Pootis McPootbird is offline
AnubisTF2
Senior Member
Join Date: Oct 2015
Old 09-17-2018 , 16:43   Re: Weapon stats
Reply With Quote #4

press F3 if you are using notepad or Search if you are using Notepad++

search for "355" (Fan O War item index)

if it doesn't look like a weapon stat, then keep searching till you find it

remove / add what you want
__________________
naw
AnubisTF2 is offline
Pootis McPootbird
Junior Member
Join Date: Aug 2018
Old 09-18-2018 , 05:12   Re: Weapon stats
Reply With Quote #5

And how do I add stats for new weapons? For instance, I want to make the Boston Basher give +25 HP on equip, the Vita-Saw to make the Medic Ubered for 1 second on a hit, and the Chargin' Targe to reappear after 2 minutes.

Can't I use TF2Items to make these type of changes? (Except for Vita-Saw, since it would need a custom attribute)
Pootis McPootbird is offline
Maximilian_
Veteran Member
Join Date: Oct 2014
Old 09-18-2018 , 08:59   Re: Weapon stats
Reply With Quote #6

Quote:
Originally Posted by Pootis McPootbird View Post
And how do I add stats for new weapons? For instance, I want to make the Boston Basher give +25 HP on equip, the Vita-Saw to make the Medic Ubered for 1 second on a hit, and the Chargin' Targe to reappear after 2 minutes.

Can't I use TF2Items to make these type of changes? (Except for Vita-Saw, since it would need a custom attribute)
For Boston Basher - yes, Chargin' Targe needs to be re-coded inside FF2
Maximilian_ is offline
Pootis McPootbird
Junior Member
Join Date: Aug 2018
Old 09-18-2018 , 10:19   Re: Weapon stats
Reply With Quote #7

Quote:
Originally Posted by Maximilian_ View Post
Chargin' Targe needs to be re-coded inside FF2
For anyone reading this, if you know how you can make Chargin' Targe reappear after 2 minutes, please put the lines of code in this thread!

Moving away from that, what I can understand from this is: "If it has "vanilla" attributes, use TF2Items." But how could I restrict those changes only for the RED team?
Pootis McPootbird is offline
Maximilian_
Veteran Member
Join Date: Oct 2014
Old 09-19-2018 , 11:16   Re: Weapon stats
Reply With Quote #8

Quote:
Originally Posted by Pootis McPootbird View Post
For anyone reading this, if you know how you can make Chargin' Targe reappear after 2 minutes, please put the lines of code in this thread!

Moving away from that, what I can understand from this is: "If it has "vanilla" attributes, use TF2Items." But how could I restrict those changes only for the RED team?
I suck at coding, sorry

As i saw inside FF2, all changes in attributes works only on non-boss clients.
Take notepad and look at .sp file "public Action:CheckItems" (deleting items) and "public Action:TF2Items_OnGiveNamedItem" (changing indexes)

Heresome links for you:
(use ctrl+F)
Indexes:
https://wiki.alliedmods.net/Team_For...nition_Indexes
Attributes:
http://optf2.com/440/attributes

Notice: Anything of this you can find in tf/scripts/items/items_game.txt

For coders: i saw something in randomizer plugin for jarate and madmilk, maybe this will help

Last edited by Maximilian_; 09-19-2018 at 11:20.
Maximilian_ is offline
Pootis McPootbird
Junior Member
Join Date: Aug 2018
Old 09-21-2018 , 05:47   Re: Weapon stats
Reply With Quote #9

Alright, so I think I got it all figured out. Thanks to everyone who helped me!

An admin can now close this thread.
Pootis McPootbird 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 08:22.


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