Page 1 of 1

Hud and immunity

Posted: Wed Nov 03, 2004 2:27 pm
by agentmad007
hi all ,

After one month without .map here is my small question

I d like to immune the player in my script .Bdbodger talked me about

Code: Select all

local.player notsolid 
i am sure it wil work perfect but is this command will freeze the player and make him unavailable to walk ?

Code: Select all

local.player immune
local.player removeimmune
These comands works ?

Second question :

Whne the local.player fire my trigger i d like to hide evrything on the screen .(weapons , health , every huds like the ingame comand ui_hud 0)

Thanks a lot .

Posted: Wed Nov 03, 2004 3:25 pm
by lizardkid
well with that you'll need to add an immunity, a complete list is in g_allclasses, it's in HTML format so just hit Edit>Find(On This Page) and type in immune.

but to immune him from all damage i suggest jsut doing

Code: Select all

$player toggle dog
and notsolid works i belive, since the programming tests for a solid entity.. but just do

Code: Select all

$player solid
at the end to get him solid again.
no it isnt, that would be something like disableinput or something, if you want that check the Omaha(m3l1) script.

EDIT: oh and with the hud try

Code: Select all

ui_hud 0
and a usual

Code: Select all

ui_hud 1
for it to come back.

Posted: Wed Nov 03, 2004 6:12 pm
by agentmad007
Thx lizard i ll give a try ;)

ui_hud 0 and 1 i knew that work ingame but not in script file.

Posted: Thu Nov 04, 2004 1:25 am
by lizardkid
well i know t2l1 did both these things at start...

here we go.

Code: Select all

	$player physics_off
	//freezeplayer
	fadeout .001 0 0 0 1
	drawhud 0
physics_off and drawhud are whatcha need :D

physics_on dsiables taht efect. :wink:

Posted: Thu Nov 04, 2004 10:55 pm
by agentmad007

Code: Select all

physics_on/off
I knew that by Tltrude

Code: Select all

drawhud 0/1
Thanks mate i think that is what i want [/code]

Posted: Fri Nov 05, 2004 12:56 pm
by agentmad007
Drawhud works fine thanks , however the weapon is till here .

i dont know the command to remove it .can someone help plz .

Posted: Fri Nov 05, 2004 1:11 pm
by Elgan
[quote="lizardkid"]well with that you'll need to add an immunity, a complete list is in g_allclasses, it's in HTML format so just hit Edit>Find(On This Page) and type in immune.

but to immune him from all damage i suggest jsut doing

Code: Select all

$player toggle dog

i dont reacomend dog. it goes weird sometimes .not sure why.

with the anti spawn kill thingy i used dog at first and ppl complained.
I changed it to damage and nodamage and it worked fine.

Posted: Fri Nov 05, 2004 4:02 pm
by lizardkid
do

Code: Select all

$player holster
before the physics, then

Code: Select all

$player unholster
at the end. :wink:

Posted: Fri Nov 05, 2004 6:25 pm
by agentmad007
Oh yes finally cobra helped me out thi safternoon , but i met trouble with these command .....so i let it down .....no worries


thx

Posted: Mon Nov 08, 2004 1:27 pm
by agentmad007

Code: Select all

$splayer nodamage
Work fine but when i want to disable it

Code: Select all

$player nodamage
the player is still immune why ?


thx

Posted: Mon Nov 08, 2004 1:47 pm
by jv_map
Use

$player takedamage

:wink:

Posted: Mon Nov 08, 2004 2:00 pm
by agentmad007
oops Btw i writted an error i tried

Code: Select all

$player damage
to diable the immune but i was wrong hehe

THANKS jv_map