Serversde avatar

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
Master-Of-Fungus-Foo-D
Muffin Man
Posts: 1544
Joined: Tue Jan 27, 2004 12:33 am
Location: cali, United States

Serversde avatar

Post 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?
Image
The Fungus Theme song!!!

Code: Select all

while (local.player istouching self)
Unreal_Demon
Lance Corporal
Posts: 15
Joined: Sat Jan 22, 2005 12:21 am

Post 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.
Admin @ Unrealmod
Master-Of-Fungus-Foo-D
Muffin Man
Posts: 1544
Joined: Tue Jan 27, 2004 12:33 am
Location: cali, United States

Post by Master-Of-Fungus-Foo-D »

like glue a model of a medics helmet above their head?
Image
The Fungus Theme song!!!

Code: Select all

while (local.player istouching self)
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Post 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).
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
Master-Of-Fungus-Foo-D
Muffin Man
Posts: 1544
Joined: Tue Jan 27, 2004 12:33 am
Location: cali, United States

Post by Master-Of-Fungus-Foo-D »

so i cant change where its glued to in any way? WHat about bind?
Image
The Fungus Theme song!!!

Code: Select all

while (local.player istouching self)
Unreal_Demon
Lance Corporal
Posts: 15
Joined: Sat Jan 22, 2005 12:21 am

Post 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 ).
Admin @ Unrealmod
Master-Of-Fungus-Foo-D
Muffin Man
Posts: 1544
Joined: Tue Jan 27, 2004 12:33 am
Location: cali, United States

Post 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 )
}
Image
The Fungus Theme song!!!

Code: Select all

while (local.player istouching self)
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Post 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.
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
Unreal_Demon
Lance Corporal
Posts: 15
Joined: Sat Jan 22, 2005 12:21 am

Post 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
	}
Admin @ Unrealmod
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Post 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.
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
Master-Of-Fungus-Foo-D
Muffin Man
Posts: 1544
Joined: Tue Jan 27, 2004 12:33 am
Location: cali, United States

Post by Master-Of-Fungus-Foo-D »

thx guys ill try attatching it right now :D
Image
The Fungus Theme song!!!

Code: Select all

while (local.player istouching self)
Unreal_Demon
Lance Corporal
Posts: 15
Joined: Sat Jan 22, 2005 12:21 am

Post 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 )
Admin @ Unrealmod
Post Reply