Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Swimming script
Swimming script [message #367033] Mon, 12 January 2009 06:43 Go to next message
Titan1x77 is currently offline  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 Go to previous messageGo to next message
reborn is currently offline  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 Go to previous messageGo to next message
Jerad2142 is currently offline  Jerad2142
Messages: 3813
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.


[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 Go to previous messageGo to next message
Titan1x77 is currently offline  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 Go to previous messageGo to next message
Jerad2142 is currently offline  Jerad2142
Messages: 3813
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.


Re: Swimming script [message #367220 is a reply to message #367033] Tue, 13 January 2009 12:08 Go to previous messageGo to next message
Titan1x77 is currently offline  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

Re: Swimming script [message #367244 is a reply to message #367033] Tue, 13 January 2009 16:44 Go to previous messageGo to next message
GEORGE ZIMMER is currently offline  GEORGE ZIMMER
Messages: 2605
Registered: March 2006
Karma: 0
General (2 Stars)
Rp2 has had tons of releases, although 1.4 has the most stable swimming. And considering it still has bugs... yeah.

But, I'm somewhat surprised you haven't. It's a great showcase of what Renegade can do.


Toggle Spoiler
Re: Swimming script [message #367251 is a reply to message #367244] Tue, 13 January 2009 17:59 Go to previous messageGo to next message
samous is currently offline  samous
Messages: 616
Registered: August 2008
Karma: 0
Colonel
Cabal8616 wrote on Tue, 13 January 2009 15:44

Rp2 has had tons of releases, although 1.4 has the most stable swimming. And considering it still has bugs... yeah.

But, I'm somewhat surprised you haven't. It's a great showcase of what Renegade can do.


lol, i never knew that, i never whent swimming b4. All i have every done is drive a car into the water, wich did nothing.

=samous
-i might not of been reading close enough, but what do you whant the swimming thing for?


Samous Ind. modding group website:
http://samous.webs.com/img/Capture.PNG

and Facebook Page: here
Re: Swimming script [message #367456 is a reply to message #367251] Thu, 15 January 2009 18:34 Go to previous message
Jerad2142 is currently offline  Jerad2142
Messages: 3813
Registered: July 2006
Location: USA
Karma: 6
General (3 Stars)
Sounds like you were either running a really old version of rp2 or you didn't have rp2's scripts in your Renegade Directory.

Previous Topic: skins
Next Topic: High res textures
Goto Forum:
  


Current Time: Mon Dec 23 14:14:00 MST 2024

Total time taken to generate the page: 0.00973 seconds