AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   Player Properties (Hammer) (https://forums.alliedmods.net/showthread.php?t=226106)

Gecko 09-13-2013 16:31

Player Properties (Hammer)
 
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?

rodrigo286 09-13-2013 16:39

Re: Player Properties (Hammer)
 
If you try resize players, this plugin can help you:

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

Regards.

Gecko 09-13-2013 17:15

Re: Player Properties (Hammer)
 
Quote:

Originally Posted by rodrigo286 (Post 2033996)
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.....

friagram 09-14-2013 03:40

Re: Player Properties (Hammer)
 
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.

Bimbo1 09-14-2013 03:47

Re: Player Properties (Hammer)
 
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.

Oshizu 09-14-2013 07:22

Re: Player Properties (Hammer)
 
Quote:

Originally Posted by Bimbo1 (Post 2034196)
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

friagram 09-14-2013 07:35

Re: Player Properties (Hammer)
 
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)

Powerlord 09-14-2013 13:54

Re: Player Properties (Hammer)
 
Quote:

Originally Posted by Gecko (Post 2033989)
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.

11530 09-23-2013 19:06

Re: Player Properties (Hammer)
 
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. :bee:

friagram 09-24-2013 18:07

Re: Player Properties (Hammer)
 
Quote:

Originally Posted by 11530 (Post 2039789)
The TF2 Update today might be useful:


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

Coincidental URL id. Well, close enough. :bee:

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.


All times are GMT -4. The time now is 14:27.

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