Hud and immunity

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
agentmad007
Brigadier General
Posts: 570
Joined: Tue Feb 24, 2004 3:52 pm

Hud and immunity

Post 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 .
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

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

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
agentmad007
Brigadier General
Posts: 570
Joined: Tue Feb 24, 2004 3:52 pm

Post by agentmad007 »

Thx lizard i ll give a try ;)

ui_hud 0 and 1 i knew that work ingame but not in script file.
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

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

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
agentmad007
Brigadier General
Posts: 570
Joined: Tue Feb 24, 2004 3:52 pm

Post 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]
agentmad007
Brigadier General
Posts: 570
Joined: Tue Feb 24, 2004 3:52 pm

Post by agentmad007 »

Drawhud works fine thanks , however the weapon is till here .

i dont know the command to remove it .can someone help plz .
Elgan
Site Admin
Posts: 890
Joined: Tue Apr 13, 2004 10:43 pm
Location: uk
Contact:

Post 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.
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post by lizardkid »

do

Code: Select all

$player holster
before the physics, then

Code: Select all

$player unholster
at the end. :wink:
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
agentmad007
Brigadier General
Posts: 570
Joined: Tue Feb 24, 2004 3:52 pm

Post 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
agentmad007
Brigadier General
Posts: 570
Joined: Tue Feb 24, 2004 3:52 pm

Post 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
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Use

$player takedamage

:wink:
Image
agentmad007
Brigadier General
Posts: 570
Joined: Tue Feb 24, 2004 3:52 pm

Post 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
Post Reply