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

[TF2] Gimme (v1.20 - 03 May 2023)


Post New Thread Reply   
 
Thread Tools Display Modes
R188
New Member
Join Date: Dec 2023
Location: New York, United States
Old 01-25-2024 , 22:32   Re: [TF2] Gimme (v1.20 - 03 May 2023)
Reply With Quote #81

Quote:
Originally Posted by Ronas963 View Post
I did but it not working

"custom_give_weapons_vlolz"
{
"9999" //Valve Rocket Launcher

{
"classname" "tf_weapon_rocketlauncher"
"index" "205"
"slot" "0"
"quality" "8"
"level" "100"
"attribs" "2 ; 10100.0 ; 4 ; 1100.0 ; 6 ; 0.25 ; 16 ; 250.0 ; 31 ; 10.0 ; 103 ; 1.5 ; 107 ; 2.0 ; 134 ; 2.0"
"ammo" "200"
}
}
Change "9999" to something that's above 40000 so that it doesn't mess with already existing items.
R188 is offline
Dogen
New Member
Join Date: Mar 2024
Old 03-01-2024 , 19:03   Re: [TF2] Gimme (v1.20 - 03 May 2023)
Reply With Quote #82

The Hawaiian hunter hat puts the unusual effect at the chest, is there a way to fix that?

Last edited by Dogen; 03-01-2024 at 19:26.
Dogen is offline
b7lt
AlliedModders Donor
Join Date: Jul 2018
Location: New York, USA
Old 05-21-2024 , 23:51   Re: [TF2] Gimme (v1.20 - 03 May 2023)
Reply With Quote #83

Quote:
Originally Posted by Dogen View Post
The Hawaiian hunter hat puts the unusual effect at the chest, is there a way to fix that?
Yes, there is! You have to add an attribute (specifically attribute id 520) to the new tf_wearable entity so that it knows to use the player head as the origin point for the particle.

You can append the following line of code inside Items_CreateNamedItem() after line 1598 in the current version.
Code:
TF2Attrib_SetByDefIndex(newitem, 520, 1.0); // FIXES HEAD ORIGIN POINT
I'll attach the modified SP with this line appended as well.

Please note that this may stop some Unusual effects from working. I think the Halloween bats (Poisoned Shadows) are one such example. I don't know the full list but you would have to go through them and check to see what breaks yourself and create some conditional statements as a result
Attached Files
File Type: sp Get Plugin or Get Source (gimme.sp - 3 views - 97.6 KB)

Last edited by b7lt; 05-22-2024 at 00:11.
b7lt 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 07:49.


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