Post your scripting questions / solutions here
Moderator: Moderators
-
Cook
- Private
- Posts: 2
- Joined: Thu Jul 03, 2003 6:16 pm
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

-
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

!
-
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).
-
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

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