lighting models human

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
User avatar
ViPER
General
Posts: 1058
Joined: Fri Jan 14, 2005 5:48 pm
Location: California
Contact:

lighting models human

Post 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??
Elgan
Site Admin
Posts: 890
Joined: Tue Apr 13, 2004 10:43 pm
Location: uk
Contact:

Post by Elgan »

not unless u force cvars, not nice to mess with peopels settings.
User avatar
ViPER
General
Posts: 1058
Joined: Fri Jan 14, 2005 5:48 pm
Location: California
Contact:

Post 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?
User avatar
ViPER
General
Posts: 1058
Joined: Fri Jan 14, 2005 5:48 pm
Location: California
Contact:

Post by ViPER »

And, can you force stock skins from your map?
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 »

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.
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 »

couldnt you change that by script also?
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 »

It IS changed by script... :roll:
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post 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...
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
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 »

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

here's my stuff - inequation.org | here's where I work - thefarm51.com
Post Reply