Hud..

Post your scripting questions / solutions here

Moderator: Moderators

Cook
Private
Posts: 2
Joined: Thu Jul 03, 2003 6:16 pm

Hud..

Post by Cook »

Hi

How remove the life bar, the compass and the timer ?
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

If you want to do this client side, just type 'ui_hud 0' in console :)
Image
Cook
Private
Posts: 2
Joined: Thu Jul 03, 2003 6:16 pm

Post by Cook »

jv_map wrote:If you want to do this client side, just type 'ui_hud 0' in console :)
thx man :) !
User avatar
Alcoholic
General
Posts: 1470
Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:

Post by Alcoholic »

can u do it from script jv?
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Yes.

For singleplayer:
setcvar ui_hud 0

For multiplayer:
for(local.i = 1; local.i <= $player.size; local.i++)
$player[local.i] stufftext "set ui_hud 0"

You may want to put this in a loop so the player(s) can't reactivate the(ir) hud(s).
Image
User avatar
Alcoholic
General
Posts: 1470
Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:

Post by Alcoholic »

haha thats funny their trying to reactivate it. so it doesnt need a 'restart' or anything to work?
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Nope :)
Image
User avatar
Alcoholic
General
Posts: 1470
Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:

Post by Alcoholic »

cool. better cinematic sequences.
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

You can also do 'letterbox' I think.
Image
User avatar
Alcoholic
General
Posts: 1470
Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:

Post by Alcoholic »

whats that.
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Just type 'letterbox 1' in the script (when the cinematic starts) and enjoy.
Image
User avatar
Alcoholic
General
Posts: 1470
Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:

Post by Alcoholic »

do you have to do it by gluing the player to something and making him the camera? i thought there were func_cameras but i guess i was thinking of hl.
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Yes there is a func_camera in mohaa. I think tltrude has some example maps with cameras.
Image
User avatar
Alcoholic
General
Posts: 1470
Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:

Post by Alcoholic »

there is? it wasnt in my entity list! you sure its not for spearhead?
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Yes.
Image
Post Reply