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

attribute #289


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
nergal
Veteran Member
Join Date: Apr 2012
Old 08-06-2012 , 19:57   attribute #289
Reply With Quote #1

attribute #289 is the attribute that make rockets shoot from the center, wat variable makes it so i can shoot grenades from the center?
__________________
nergal is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 08-07-2012 , 08:36   Re: attribute #289
Reply With Quote #2

Quote:
Originally Posted by nergal View Post
attribute #289 is the attribute that make rockets shoot from the center, wat variable makes it so i can shoot grenades from the center?
There probably isn't one. Valve adds new attributes when they put them on weapons. Attribute #289 is used on The Original, but there are no center-firing grenade launchers.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
nergal
Veteran Member
Join Date: Apr 2012
Old 08-11-2012 , 16:30   Re: attribute #289
Reply With Quote #3

Quote:
Originally Posted by Powerlord View Post
There probably isn't one. Valve adds new attributes when they put them on weapons. Attribute #289 is used on The Original, but there are no center-firing grenade launchers.
from items_game.txt
"289"
{
"name" "centerfire projectile"
"attribute_class" "centerfire_projectile"
"min_value" "1"
"max_value" "3"
"group" "only_on_unique"
"description_string" "#Attrib_CenterFireProjectile"
"description_format" "value_is_additive"
"hidden" "1"
"effect_type" "positive"
"stored_as_integer" "1"
}

so if i put 289 ; 3 or 289 ; 2, it should make other projectiles shoot from the center.
__________________
nergal is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 08-12-2012 , 12:20   Re: attribute #289
Reply With Quote #4

That's weird how it has 1,2,3 inputs..
Mitchell is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 08-12-2012 , 17:39   Re: attribute #289
Reply With Quote #5

Quote:
Originally Posted by nergal View Post
from items_game.txt
"289"
{
"name" "centerfire projectile"
"attribute_class" "centerfire_projectile"
"min_value" "1"
"max_value" "3"
"group" "only_on_unique"
"description_string" "#Attrib_CenterFireProjectile"
"description_format" "value_is_additive"
"hidden" "1"
"effect_type" "positive"
"stored_as_integer" "1"
}

so if i put 289 ; 3 or 289 ; 2, it should make other projectiles shoot from the center.
Have you actually tested this? Valve doesn't document its attributes except for the mins and maxs, which aren't checked in any way (good thing, since some of them are wrong).
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 08-12-2012 at 17:40.
Powerlord is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 08-12-2012 , 20:57   Re: attribute #289
Reply With Quote #6

Quote:
Originally Posted by Powerlord View Post
Have you actually tested this? Valve doesn't document its attributes except for the mins and maxs, which aren't checked in any way (good thing, since some of them are wrong).
I'd paste the disassembly, but it's not exactly pleasant to read as it uses SSE.
Basically, the game only cares whether or not it's equal to 1, nothing else.
It's in CTFWeaponBase::GetProjectileFireSetup if you want to look yourself.
__________________
asherkin 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 18:59.


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