Page 1 of 1

lighting models human

Posted: Thu Mar 03, 2005 10:35 am
by ViPER
My map has alot of darkness in it, spooky hidden passages and stuff like that. Is there a way I can block players from lighting up player models in my map??

Posted: Thu Mar 03, 2005 12:41 pm
by Elgan
not unless u force cvars, not nice to mess with peopels settings.

Posted: Thu Mar 03, 2005 6:46 pm
by ViPER
Well, I think lighting people up is as good as forcing models or cheating. So how do you block or reset the lite human models or glowing human cvars?

Posted: Thu Mar 03, 2005 6:54 pm
by ViPER
And, can you force stock skins from your map?

Posted: Thu Mar 03, 2005 7:25 pm
by Rookie One.pl
Sure, you can force stock skins without sending any stufftext to the players. Just change the player's model property to the model you want, e.g.

Code: Select all

force_stock_skins:
	local.forcedskin[allies] = models/player/allied_airborne.tik
	local.forcedskin[axis] = models/player/german_waffenss_shutze.tik
	while (1)
	{
		for (local.i = 1; local.i <= $player.size; local.i++)
		{
			if ($player[local.i].model != local.forcedskin[$player[local.i].dmteam])
				$player[local.i].model = local.forcedskin[$player[local.i].dmteam]
			waitframe
		}
		waitframe
	}
end
This forces the allies to use the airborne model and the axis to use the waffen SS shutze model. However, this does not protect you from cg_forcemodels 1.

Posted: Thu Mar 03, 2005 8:30 pm
by Master-Of-Fungus-Foo-D
couldnt you change that by script also?

Posted: Thu Mar 03, 2005 8:55 pm
by Rookie One.pl
It IS changed by script... :roll:

Posted: Fri Mar 04, 2005 12:14 am
by lizardkid
i really dont see a cg_forceskins 0 line on there, leading me to believe that it isnt[/t] changed by the script.

so you can but it wasnt on that script.

oh and i'd say instead of every frame, do it maybe every 30 seconds.

$player.size? while(1) would work ok...

Posted: Fri Mar 04, 2005 6:51 am
by Rookie One.pl
Could you please read what I write next time?
Rookie One wrote:This forces the allies to use the airborne model and the axis to use the waffen SS shutze model. However, this does not protect you from cg_forcemodels 1.
And read the script carefully. It does use a while loop and it changes the player's model ONLY if it's different from the one given.