Page 1 of 1
Serversde avatar
Posted: Sun Mar 06, 2005 10:20 pm
by Master-Of-Fungus-Foo-D
Can you change a player's avatar to a stock texture thru scrpt? Or maybe add something over the avatar to specify that the player is holding an object? Or would i be better off just attatching a light or a corona to the person?
Posted: Sun Mar 06, 2005 10:23 pm
by Unreal_Demon
I dont really think so, not serverside.
But what I did to make a player avatar for one player was to spawn a model and give it the origin of the player. That's how I did it for my player medic mod.
Posted: Mon Mar 07, 2005 1:28 am
by Master-Of-Fungus-Foo-D
like glue a model of a medics helmet above their head?
Posted: Mon Mar 07, 2005 3:07 pm
by Rookie One.pl
Remeber that glueing makes the glued entity use the entity-it's-glued-to's origin and angles. So, e.g. if you glue a model to a player, it will appear at the player's feet (that's where the player's origin is).
Posted: Mon Mar 07, 2005 3:28 pm
by Master-Of-Fungus-Foo-D
so i cant change where its glued to in any way? WHat about bind?
Posted: Mon Mar 07, 2005 5:55 pm
by Unreal_Demon
I didn't use the glue command. I used a while loop and inside that I gave the entity's origin the same as the player's origin + ( 0 0 20 ).
Posted: Mon Mar 07, 2005 7:21 pm
by Master-Of-Fungus-Foo-D
soooo....
Code: Select all
while (parm.other.health != 0 )
{
$bomb.origin = parm.other.origin + ( 0.00 0.00 96.00 )
}
Posted: Mon Mar 07, 2005 7:33 pm
by Rookie One.pl
Put a waitframe in there or MoHAA will stop loading the map and print a 'possible infinite loop' error in the console. However, I'd try binding or attaching it to the Bip01 Head bone.
Posted: Mon Mar 07, 2005 7:44 pm
by Unreal_Demon
This is how I used it:
Code: Select all
while(level.medic.ismedic == 1)
{
$medic_avatar.origin = ( ( level.medic gettagposition "Bip01 Spine1" ) + ( 0 0 0 ) )
wait .1
}
Posted: Mon Mar 07, 2005 8:04 pm
by Rookie One.pl
What do you add this ( 0 0 0 ) for? And doing it this way will make the avatar lag behind the player. I'd try attaching it.
Posted: Mon Mar 07, 2005 8:12 pm
by Master-Of-Fungus-Foo-D
thx guys ill try attatching it right now

Posted: Mon Mar 07, 2005 8:21 pm
by Unreal_Demon
I extracted that out of my old one. I started from scratch. I couldn't find my new one.
Edit:
Here's the
new one:
Code: Select all
$canteen.origin = ( level.medic gettagposition "eyes bone" ) + ( 0 0 15 )