Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / Does anyone have a swimming script they are willing to share

Author
Message
GeoNeo
18
Years of Service
User Offline
Joined: 13th Jun 2006
Location: Canada
Posted: 5th Mar 2007 00:22
I checked the forums and I couldn't find anything suitable. I'm wondering is anyone has a script that would reduce the players gravity, slow down forward motion and after about 2 minutes start reducing the players health?

Geo

GeoNeo
Nalle Karhu
17
Years of Service
User Offline
Joined: 9th Dec 2006
Location: Finland
Posted: 5th Mar 2007 15:18
I think you have to edid fpsc source code to do that.
tyrano man
18
Years of Service
User Offline
Joined: 26th Oct 2006
Location: Battle City - Kalspher :)
Posted: 5th Mar 2007 21:38
Its possible, appart from the player health. You can make a see through object and place it low. Then make a water object and turn off its collision. You can now swim through the water. Give it its own sound effect and it looks great

Good luck with it
Tyrano

Woot Kingdom hearts owns!
Silvester
18
Years of Service
User Offline
Joined: 7th Dec 2005
Location: Netherlands
Posted: 5th Mar 2007 21:54
I made some "Swimming" simulation tutorial once.search for it

"Revival:Swimming in the water" is its title as i remember

GeoNeo
18
Years of Service
User Offline
Joined: 13th Jun 2006
Location: Canada
Posted: 6th Mar 2007 00:34
Tyrano, I created a 2 level pool and I do have the water decal in place, however its just for show. What I would like to be able to do is, if I jump into the pool instead of hitting the bottom I sort of float to the bottom, then when I look up or point the mouse towards the top level and I press 'W' I slowly go towards the top.

P.O.D. I did see you post on swimming but it just wasn't what I was looking for.

GeoNeo
Slayer_2
18
Years of Service
User Offline
Joined: 18th Sep 2006
Location: Anywhere I feel like
Posted: 6th Mar 2007 01:23
couldn't you make a zone that displays an "underwater" HUD, makes no gravity and takes away a health point every second after 30 seconds then place a decal like 30 units above it?
Slayer_2

EOT Check it out
http://eliteops.piczo.com
tyrano man
18
Years of Service
User Offline
Joined: 26th Oct 2006
Location: Battle City - Kalspher :)
Posted: 6th Mar 2007 08:11
I guess that would work, But i can't remember a command about no gravity for the player. Didn't know that it was possible; well it may not be

Post here if you have any problems when you write your script
Tyrano

Yay I got FF XII, and it totally rocks! Love the new battle system
Slayer_2
18
Years of Service
User Offline
Joined: 18th Sep 2006
Location: Anywhere I feel like
Posted: 6th Mar 2007 16:54
there is a nograv script but I can't alpha texture for the hud.
Slayer_2

EOT Check it out
http://eliteops.piczo.com
tyrano man
18
Years of Service
User Offline
Joined: 26th Oct 2006
Location: Battle City - Kalspher :)
Posted: 6th Mar 2007 17:33
I don't think that No grav works for the player.

Yay I got FF XII, and it totally rocks! Love the new battle system
Slayer_2
18
Years of Service
User Offline
Joined: 18th Sep 2006
Location: Anywhere I feel like
Posted: 6th Mar 2007 17:48
Oh I was certain it only works for the player

EOT Check it out
http://eliteops.piczo.com
tyrano man
18
Years of Service
User Offline
Joined: 26th Oct 2006
Location: Battle City - Kalspher :)
Posted: 6th Mar 2007 17:50
Well I thought it only works on entitys You'll just have to test it.

Make a underwater HUD and I can probably apply an alpha to it
Good luck
Tyrano

Yay I got FF XII, and it totally rocks! Love the new battle system
vorconan
18
Years of Service
User Offline
Joined: 4th Nov 2006
Location: Wales
Posted: 6th Mar 2007 18:20 Edited at: 6th Mar 2007 18:21
Here's an idea:

1. place the water decals in the place you want, or semi-transparent blue entities with no collision if you really want to.

2. Make a simple transparent entity that will be on the surface of the water.

3. Make a static entity with no collision and place that at the bottom of the water.

4. Use a script to associate the player with that entity and have it slowly move it down to give the appearance of floating, also add sound effects at this point if you want.

5. When the entity the player is standing on reaches the bottom of the water, start a script with the condition ANYWITHIN=X in it. The entity the player is standing on should detect the static one that was placed at the bottom of the water. When that condition is met, have a scancodekeypressed=X action that will start the entity rising again. Note here that if you have the W key set as the button to rise then it won't work as it is already coded as the forward action. If you have a version 1.04 of FPS Creator (thats the one I have anyway), it has the action USEARROWKEYS=X in it. If X=0 then you will be able to use the W key as the button to rise through the water, but just remember to enable the arrowkeys again afterwards so the player can walk.

I'll try and code the script and put it here since this is an idea of mine that might actually work.

Hope it helps a bit.

so what's the job?
Slayer_2
18
Years of Service
User Offline
Joined: 18th Sep 2006
Location: Anywhere I feel like
Posted: 6th Mar 2007 19:57
I'll try sometime but I have my hands full with EOT...

EOT Check it out
http://eliteops.piczo.com

Login to post a reply

Server time is: 2024-11-23 12:11:03
Your offset time is: 2024-11-23 12:11:03