English How to breath underwater

11 replies
Goto Page
To the start Previous 1 Next To the start
22.07.10 04:46:40 am
Up
superckool
User
Offline Off
I'm in the middle of making a scuba gear item, but how do I set it so that the player can breath underwater, can someone help me? This is very frustrating.
22.07.10 10:23:53 am
Up
DC
Admin
Offline Off
use the script command s2 cmd air

and/or open game.inf and change the line
dive_time=20000
(but this one is probably only an option when making a mod)
www.UnrealSoftware.de | www.CS2D.com | www.CarnageContest.com | Use the forum & avoid PMs!
22.07.10 07:47:44 pm
Up
superckool
User
Offline Off
Thanks DC now I can try to make the scuba suit.
22.07.10 07:53:03 pm
Up
pupp3tStudios
User
Offline Off
Haha that's nice a scubi divy suit!
22.07.10 10:27:04 pm
Up
superckool
User
Offline Off
Well I made a script that sets the air to 20000 every time you use it, but it just sets my air to 0, anyone know why?
22.07.10 10:51:00 pm
Up
DC
Admin
Offline Off
uhm.. I guess you did it wrong. too bad that you didn't show your script because it would make things much easier...

there's actually not much you can do wrong. you only need to execute that single command properly with a correct parameter.
Code:
1
air 10000;

for example will give you air for 10,000 milliseconds. that are 10 seconds (1,000 ms = 1 second)
www.UnrealSoftware.de | www.CS2D.com | www.CarnageContest.com | Use the forum & avoid PMs!
23.07.10 07:48:50 pm
Up
superckool
User
Offline Off
I know what I did wrong... I set it to -20000 on accident, its fixed now, also I don't think this needs a new topic, but is there a way to make the player fall slowly throgh the air, like using a parachute?
23.07.10 08:18:08 pm
Up
DC
Admin
Offline Off
you could move the player upwards a bit while he is falling. so it looks like he is falling slower. this might lead to a quite jerky and unclean result though...
www.UnrealSoftware.de | www.CS2D.com | www.CarnageContest.com | Use the forum & avoid PMs!
24.07.10 06:02:13 pm
Up
superckool
User
Offline Off
Okay then, thanks.
24.07.10 06:20:56 pm
Up
pupp3tStudios
User
Offline Off
You cant change the player's speed with a script ingame rite?
24.07.10 06:46:41 pm
Up
Vectarrio
User
Offline Off
Pupp3t has written:
You cant change the player's speed with a script ingame rite?

You can add state "speed" - it makes speed faster.
24.07.10 06:51:34 pm
Up
pupp3tStudios
User
Offline Off
Oh yeahs... :3
just make the character fall from a great height, then activate the state through an item use, or a time trigger etc.
To the start Previous 1 Next To the start