Raised This Month: $ Target: $400
 0% 

[Tf2]Editing Weapons


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
MrTimcakes
Senior Member
Join Date: Jan 2012
Location: Uk
Old 06-14-2012 , 15:09   [Tf2]Editing Weapons
Reply With Quote #1

I know you can use Items_game.txt but that reloads and dosnt always work. I'v seen a plugin by psychonic That changes the Wrench to put people on fire and i know Tf2items dose it but i cant get that to work. What i want is some code that allows me to change the Flare gun to act like a detonator (Only the Pushback/Detonator jump without the self damage) like Saxton hale (Mega-Detonator
Spoiler
)

Thanks, ducky
__________________
MrTimcakes is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 06-14-2012 , 16:48   Re: [Tf2]Editing Weapons
Reply With Quote #2

Quote:
Originally Posted by MrTimcakes View Post
I know you can use Items_game.txt but that reloads and dosnt always work. I'v seen a plugin by psychonic That changes the Wrench to put people on fire and i know Tf2items dose it but i cant get that to work. What i want is some code that allows me to change the Flare gun to act like a detonator (Only the Pushback/Detonator jump without the self damage) like Saxton hale (Mega-Detonator
Spoiler
)

Thanks, ducky
Why not just find the item definition index for flare gun (which is 39 by the way), and then copy the code Freak Fortress 2 (or Vs. Saxton Hale) uses to alter it?
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
MrTimcakes
Senior Member
Join Date: Jan 2012
Location: Uk
Old 06-20-2012 , 16:40   Re: [Tf2]Editing Weapons
Reply With Quote #3

Anyone know how?
__________________
MrTimcakes is offline
Mathias.
Veteran Member
Join Date: Aug 2010
Location: Canada is my city
Old 06-20-2012 , 22:52   Re: [Tf2]Editing Weapons
Reply With Quote #4

You can check the Saxton Hale code as Powerlord suggest.

Last edited by Mathias.; 06-20-2012 at 22:57.
Mathias. is offline
TsooJ
Member
Join Date: May 2012
Old 06-21-2012 , 03:04   Re: [Tf2]Editing Weapons
Reply With Quote #5

Hello maby this will work out, These are the attributes of the detonator

Code:
"attributes"
			{
				"hidden secondary max ammo penalty"
				{
					"attribute_class"	"mult_maxammo_secondary"
					"value"	"0.5"
				}
				"blast dmg to self increased"
				{
					"attribute_class"	"blast_dmg_to_self"
					"value"	"1.25"
				}
				"lunchbox adds minicrits"
				{
					"attribute_class"	"set_weapon_mode"
					"value"	"1"
				}
			}
And these are from the flaregun.

Code:
"attributes"
			{
				"hidden secondary max ammo penalty"
				{
					"attribute_class"	"mult_maxammo_secondary"
					"value"	"0.5"
				}
			}
So when your using TF2weapons.txt and edit the flaregun weapon.
you have to add the "blast dmg to self increased" attribute to the flaregun and increase it like value 2

This will probably work.
TsooJ is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 06-21-2012 , 09:25   Re: [Tf2]Editing Weapons
Reply With Quote #6

Quote:
Originally Posted by TsooJ View Post
Hello maby this will work out, These are the attributes of the detonator

Code:
"attributes"
            {
                "hidden secondary max ammo penalty"
                {
                    "attribute_class"    "mult_maxammo_secondary"
                    "value"    "0.5"
                }
                "blast dmg to self increased"
                {
                    "attribute_class"    "blast_dmg_to_self"
                    "value"    "1.25"
                }
                "lunchbox adds minicrits"
                {
                    "attribute_class"    "set_weapon_mode"
                    "value"    "1"
                }
            }
And these are from the flaregun.

Code:
"attributes"
            {
                "hidden secondary max ammo penalty"
                {
                    "attribute_class"    "mult_maxammo_secondary"
                    "value"    "0.5"
                }
            }
So when your using TF2weapons.txt and edit the flaregun weapon.
you have to add the "blast dmg to self increased" attribute to the flaregun and increase it like value 2

This will probably work.
I thought he wanted to detonator ability to flare jump but without the extra self-damage... meaning he'd want to add lunchbox adds minicrits (which you'll notice is really calling set_weapon_mode) to the flare gun.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 06-21-2012 at 09:25.
Powerlord is offline
MrTimcakes
Senior Member
Join Date: Jan 2012
Location: Uk
Old 06-26-2012 , 16:33   Re: [Tf2]Editing Weapons
Reply With Quote #7

i want the flare gun to detonator jump but without self damage
__________________
MrTimcakes is offline
MrTimcakes
Senior Member
Join Date: Jan 2012
Location: Uk
Old 07-06-2012 , 20:30   Re: [Tf2]Editing Weapons
Reply With Quote #8

Quote:
Originally Posted by TsooJ View Post
Hello maby this will work out, These are the attributes of the detonator
Spoiler
Yeha i already Found this in the Items_game.tct i just dont know how to use it in a plugin to edit the weapon
__________________
MrTimcakes is offline
MasterOfTheXP
Veteran Member
Join Date: Aug 2011
Location: Cloudbank
Old 07-07-2012 , 15:05   Re: [Tf2]Editing Weapons
Reply With Quote #9

Replace content of sourcemod/configs/tf2items.weapons.txt with this.
PHP Code:
"custom_weapons_v3"
{
    
"*" // Everyone
    
{
        
"39" // The Flare Gun
        
{
            
"1"                "181 ; 2" // No self blast damage
            
"2"                "144 ; 1" // Alt-fire: Detonate flare
            
"3"                "25 ; 0.5" // Hidden secondary max ammo penalty
        
}
    }

__________________
Plugins / My Steam / TF2 Sandbox (plugin beta testing!)
MasterOfTheXP is offline
MrTimcakes
Senior Member
Join Date: Jan 2012
Location: Uk
Old 07-08-2012 , 18:37   Re: [Tf2]Editing Weapons
Reply With Quote #10

Quote:
Originally Posted by MasterOfTheXP View Post
Replace content of sourcemod/configs/tf2items.weapons.txt with this.
PHP Code:
"custom_weapons_v3"
{
    
"*" // Everyone
    
{
        
"39" // The Flare Gun
        
{
            
"1"                "181 ; 2" // No self blast damage
            
"2"                "144 ; 1" // Alt-fire: Detonate flare
            
"3"                "25 ; 0.5" // Hidden secondary max ammo penalty
        
}
    }

Dose this act like Item_game.txt ? because i know i can edit another Tf2items File go edit a weapon when i give my self the Id like 1010
__________________
MrTimcakes 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 21:13.


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