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

Player Properties (Hammer)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Gecko
SourceMod Donor
Join Date: Nov 2010
Location: Vancouver, Canada
Old 09-13-2013 , 16:31   Player Properties (Hammer)
Reply With Quote #1

I suppose this is more of an SDK question but you guys might know the answer as well.

I'm trying to figure out which properties of the player entity I can change in Hammer, that will transmit properly at runtime.

For example, I know changing 'modelindex' works, as well as 'rendermode' and things like that. I attempted to modify 'm_flModelScale' but that did not work (while it did cause some glitchy animations to start happening so I guess something changed).

Is there a way I can check which player/entity properties are modifiable in Hammer like the two mentioned?
__________________
"My brain is so left-sided, it isn't even funny... at all."
Gecko is offline
rodrigo286
Veteran Member
Join Date: Sep 2010
Location: Brazil, São Paulo
Old 09-13-2013 , 16:39   Re: Player Properties (Hammer)
Reply With Quote #2

If you try resize players, this plugin can help you:

https://forums.alliedmods.net/showthread.php?p=1774605

Regards.
__________________
My Plugins | VIEW HERE | I accept private requests, send me a PM.
Buy respawn | Uber Recall | Grenade drop | Damage Supperssor
Meet the Medic | Disguise Expert | Crazy Jet

CZSBrasil TEAM

Last edited by rodrigo286; 09-13-2013 at 16:39.
rodrigo286 is offline
Gecko
SourceMod Donor
Join Date: Nov 2010
Location: Vancouver, Canada
Old 09-13-2013 , 17:15   Re: Player Properties (Hammer)
Reply With Quote #3

Quote:
Originally Posted by rodrigo286 View Post
If you try resize players, this plugin can help you:

https://forums.alliedmods.net/showthread.php?p=1774605

Regards.
I asked about doing such things through Hammer.....
__________________
"My brain is so left-sided, it isn't even funny... at all."
Gecko is offline
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 09-14-2013 , 03:40   Re: Player Properties (Hammer)
Reply With Quote #4

All you can do in hammer mis send inputs, so whatever the player entity has inputs for...
Setcustommodel, igniteplayer in tf2
alpha, color in most games...
Health .. Addhealth.. SEthealth.. I some games,, dump datamaps and chck what inputs the player has.
__________________
Profile - Plugins
Add me on steam if you are seeking sp/map/model commissions.
friagram is offline
Bimbo1
Senior Member
Join Date: Jan 2010
Location: brazil
Old 09-14-2013 , 03:47   Re: Player Properties (Hammer)
Reply With Quote #5

why don't you make map specific sourcemod plugins to do such custom feature?
@edit: or you could create a trigger_multiple with a name like "modelscalerxxx", hook the touchs of all modelscaler and set player's model scale based on the parameter xxx.
__________________
sie sind das essen und wir sind die jäger!

Last edited by Bimbo1; 09-14-2013 at 03:53.
Bimbo1 is offline
Oshizu
Veteran Member
Join Date: Nov 2012
Location: Warsaw
Old 09-14-2013 , 07:22   Re: Player Properties (Hammer)
Reply With Quote #6

Quote:
Originally Posted by Bimbo1 View Post
why don't you make map specific sourcemod plugins to do such custom feature?
@edit: or you could create a trigger_multiple with a name like "modelscalerxxx", hook the touchs of all modelscaler and set player's model scale based on the parameter xxx.
That's the good choice also
But would be quite diffrent if he wanted to do it for vanilla TF map without sourcemod
__________________
...
Oshizu is offline
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 09-14-2013 , 07:35   Re: Player Properties (Hammer)
Reply With Quote #7

I use the trigger method on my custom maps, kr create them from coords from config files, but its somewhat convoluted for what he's trying to accomplish here (not use sm)
__________________
Profile - Plugins
Add me on steam if you are seeking sp/map/model commissions.
friagram is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 09-14-2013 , 13:54   Re: Player Properties (Hammer)
Reply With Quote #8

Quote:
Originally Posted by Gecko View Post
I suppose this is more of an SDK question but you guys might know the answer as well.

I'm trying to figure out which properties of the player entity I can change in Hammer, that will transmit properly at runtime.

For example, I know changing 'modelindex' works, as well as 'rendermode' and things like that. I attempted to modify 'm_flModelScale' but that did not work (while it did cause some glitchy animations to start happening so I guess something changed).

Is there a way I can check which player/entity properties are modifiable in Hammer like the two mentioned?
Hammer really isn't set up to manipulate player netprops directly. Which is why koth_lakeside_event needed wheel_of_doom as its own server class.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
11530
Veteran Member
Join Date: Sep 2011
Location: Underworld
Old 09-23-2013 , 19:06   Re: Player Properties (Hammer)
Reply With Quote #9

The TF2 Update today might be useful:

Quote:
Added modelscale and SetModelScale input to Studiomodel so map authors can use them to scale models.
(source: http://www.teamfortress.com/post.php?id=11503)

Coincidental URL id. Well, close enough.
__________________

Last edited by 11530; 09-23-2013 at 20:22.
11530 is offline
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 09-24-2013 , 18:07   Re: Player Properties (Hammer)
Reply With Quote #10

Quote:
Originally Posted by 11530 View Post
The TF2 Update today might be useful:


(source: http://www.teamfortress.com/post.php?id=11503)

Coincidental URL id. Well, close enough.
Okay? So now you don't need to recompile models to get the desired size for your maps. It's mostly a convenience feature for map developers//people who don't know how to make models but want to make maps.
__________________
Profile - Plugins
Add me on steam if you are seeking sp/map/model commissions.
friagram 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 05:29.


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