Home » Renegade Discussions » Mod Forum » Swimming script
Swimming script [message #367033] |
Mon, 12 January 2009 06:43 |
|
Titan1x77
Messages: 1086 Registered: February 2003
Karma: 0
|
General (1 Star) |
|
|
I was playing around in max with a map with alot of water, and thought of making an underground with a script zone to send a custom to JFW_Jetpack... As the jetpack works you have to toggle it, which doesnt work for what im trying to do.
With the same code and changes to take away toggle and just leave it on, I can set up a zone to reach the very bottom to the top of the water, thus, when u enter the water, you can now "fly" or swim, when you reach the top (outside of the zone) it shuts the jetpack off.
The effect would be really cool to have you come flying up and to drop back down into the water as you reach the surface, also you could tread along the top or just swim where ever you'd like.
I have no idea how to code or compile, but I know how to set them up...can someone make a script like this based off JFW_jetpack?
Also make sure you can send a custom from a zone, I think jfw_jetpack needs to send a custom from a vehicle according to the readme.
"But if the gameplay sucks, the looks don't matter at all." - Sir Phoenixx
|
|
|
Re: Swimming script [message #367049 is a reply to message #367033] |
Mon, 12 January 2009 09:05 |
|
reborn
Messages: 3231 Registered: September 2004 Location: uk - london
Karma: 0
|
General (3 Stars) |
|
|
Strangely enough I noticed that the toggle was missing it's sister function set_fly_mod too, just yesterday.
I didn't want to toggle either, so I set mine up like this:
bool flying;
flying = Get_Fly_Mode(obj);
if(!flying){
Toggle_Fly_Mode(obj);
}
The current API actually suggests in a comment on the Get_Fly_Mode function that Set_Fly_Mode exists, but I guess it was forgotten.
I hope this info help you.
|
|
|
Re: Swimming script [message #367151 is a reply to message #367033] |
Tue, 13 January 2009 02:31 |
|
Jerad2142
Messages: 3811 Registered: July 2006 Location: USA
Karma: 6
|
General (3 Stars) |
|
|
Titan1x77 wrote on Mon, 12 January 2009 06:43 | I was playing around in max with a map with alot of water, and thought of making an underground with a script zone to send a custom to JFW_Jetpack... As the jetpack works you have to toggle it, which doesnt work for what im trying to do.
With the same code and changes to take away toggle and just leave it on, I can set up a zone to reach the very bottom to the top of the water, thus, when u enter the water, you can now "fly" or swim, when you reach the top (outside of the zone) it shuts the jetpack off.
The effect would be really cool to have you come flying up and to drop back down into the water as you reach the surface, also you could tread along the top or just swim where ever you'd like.
I have no idea how to code or compile, but I know how to set them up...can someone make a script like this based off JFW_jetpack?
Also make sure you can send a custom from a zone, I think jfw_jetpack needs to send a custom from a vehicle according to the readme.
|
Ever played rp2?
Also, there is a big LOL surprise if you don't do any thing special in your code, and just toggle fly off. It causes a little glitch, and if the player doesn't move after it being toggled off, and presses space bar at the same time it toggles off, they can go rocketing into the air.
Visit Jerad's deer sweat shop
[Updated on: Tue, 13 January 2009 02:37] Report message to a moderator
|
|
|
Re: Swimming script [message #367162 is a reply to message #367033] |
Tue, 13 January 2009 05:46 |
|
Titan1x77
Messages: 1086 Registered: February 2003
Karma: 0
|
General (1 Star) |
|
|
I can confirm the launch with the spacebar...haha
I went and set this up yesterday and sadly it works great except for the launch, if the launching glitch can be avoided, this will work.
I even tried setting a jfw_bounce_enter zone above it knocking you back down, but this is way to dirty. you can get knocked into the ground if you are not careful.
Thanks for the code reborn, But I have no idea on how to compile, if there is tutorial on how to do it, I could try it...besides,I think with the launch bug, using toggle fly mode isn't the best way as I thought.
Incidentally, We found a way to make a real jump pad but at the fixed height, as bounce zone entry is really a teleport..lol
I havent played RP2, what should i be looking for?
"But if the gameplay sucks, the looks don't matter at all." - Sir Phoenixx
|
|
|
Re: Swimming script [message #367219 is a reply to message #367162] |
Tue, 13 January 2009 11:50 |
|
Jerad2142
Messages: 3811 Registered: July 2006 Location: USA
Karma: 6
|
General (3 Stars) |
|
|
Titan1x77 wrote on Tue, 13 January 2009 05:46 | I can confirm the launch with the spacebar...haha
I went and set this up yesterday and sadly it works great except for the launch, if the launching glitch can be avoided, this will work.
I even tried setting a jfw_bounce_enter zone above it knocking you back down, but this is way to dirty. you can get knocked into the ground if you are not careful.
Thanks for the code reborn, But I have no idea on how to compile, if there is tutorial on how to do it, I could try it...besides,I think with the launch bug, using toggle fly mode isn't the best way as I thought.
Incidentally, We found a way to make a real jump pad but at the fixed height, as bounce zone entry is really a teleport..lol
I havent played RP2, what should i be looking for?
|
http://www.roleplay2.com/index.php?page=download.php]http://www.roleplay2.com/index.php?page=download.php[url]
I have implemented real swimming into it, you should give it a try, its rather complex, but if you like it I can assist you in getting it into your own mod.
Visit Jerad's deer sweat shop
|
|
|
Re: Swimming script [message #367220 is a reply to message #367033] |
Tue, 13 January 2009 12:08 |
|
Titan1x77
Messages: 1086 Registered: February 2003
Karma: 0
|
General (1 Star) |
|
|
downloading...
I definitely wanna check this out, I use to play blazeas race maps years back, me and him tested each others maps...this outta be good, nice to see its released.
"But if the gameplay sucks, the looks don't matter at all." - Sir Phoenixx
|
|
|
|
|
|
Goto Forum:
Current Time: Sat Nov 30 21:52:41 MST 2024
Total time taken to generate the page: 0.00862 seconds
|