Forum

> > Carnage Contest > Whats up with the " Rope " thingy?
Forums overviewCarnage Contest overviewLog in to reply

English Whats up with the " Rope " thingy?

14 replies
To the start Previous 1 Next To the start

old Re: Whats up with the " Rope " thingy?

DC
Admin Off Offline

Quote
it doesn't work because I never scripted it. There is a file for it but it doesn't have real content. therefore it is not part of any weapon set.

I simply forgot delete it in the release version.

old Re: Whats up with the " Rope " thingy?

DannyDeth
User Off Offline

Quote
Well, since there is no script, I will embark on my own little adventure and try to script it myself. I'm thinkin' it's gonna be one hard little nut I'm gonna have to crack
edited 1×, last 24.02.10 02:58:00 pm

old Re: Whats up with the " Rope " thingy?

Nem
User Off Offline

Quote
DannyDeth has written
Well, since there is no script, I will embark on my own little adventure and try to script it myself. I'm thinkin' it's gonna be one hard little nut I'm gonna have to crack

I thinks its impossible now

old Re: Whats up with the " Rope " thingy?

DC
Admin Off Offline

Quote
no, it should be possible. CC + Lua offer everything you need. however it's rather complicated. that's why I didn't manage to do it yet...

old I have got an idea!

DannyDeth
User Off Offline

Quote
Right now I"m experimenting with the problem. It proves to be more diffucult than i thought. I had an idea to take a little look at glue grenade to see what i could use and wolah i got another idea. So far i have got the player throwing the rope and the rope sticking to the terrain, im still figuring out how to pull him in the dirrection of the rope. Chow 4 now, I will inform everyone as i progress.

old Re: Whats up with the " Rope " thingy?

DC
Admin Off Offline

Quote
you actually have to disable the direct playercontrol with cc cmd playercontrol and then you have to change the rope length when up/down keys are pressed (check with cc cmd keydown).
the position of the player can be changed with cc cmd playerposition

however the difficult part is the rope physics. you have to be able to swing and it has to be bendable, collide with the terrain and wrap around it... I didn't find a good solution for this yet.

old Re: Whats up with the " Rope " thingy?

DannyDeth
User Off Offline

Quote
I have officially given up, i tried and tried, and failed. I got it to stick to the wall, and display the actual rope ( that was really confusing, i often got gaps in it ) but pulling the player, that must be impossible. Please remove it from the next realease of CC. It's plain evil!

old Re: Whats up with the " Rope " thingy?

DannyDeth
User Off Offline

Quote
I'm sorry Patasuss, Pikachu is right. I deleted the script, except for a prototype that failed miserably, I used it as a "never do this ever again, else i die and rot in hell" type thing. That was when i was still making it shoot a round object which was supposed to stick to the wall, then used a mathematical formula to find the direction it shoud pull. Unfortunatly my formula was off and the round thing some how dissapeared when it hit the terrain. So i don't think you want to look at that. And by the way i wasn't coding very neatly so you probably won't be able to read it, niether did i put comments in to remember things and variables that where needed, let 'lone how the different scripts where working. It was a sloppy job, my final script was great but i lacked expierience with Lua and didn't know that i had to disable player control. So I'm not posting it, it will ruin any reputation i ahve.

EDIT: In order for the rope physics to work, you need to use something like vectors in 3D modelling. The rope is made up of several vectors connected by lines. The vectors act as joints where it can swing and the strings act as somehting for the terain to shape to, i have no idea how to do this in Lua, but i know that that is the way the rope in Worms. DC, if you have ANY idea if vectors are possible to make in Lua, plz pm me how, i really wanna make that rope

old Re: Whats up with the " Rope " thingy?

SQ
Moderator Off Offline

Quote
There is hope for rope in next CC version.

I've two ways of making rope...
One is based on constrains and another basically same as worms.

@DannyDeth,
That's the way of making rope physics.
http://www.functionblog.com/?p=134

I've written similar physics on BMax, C and Lua for my corrent project.
You can download one BMax app here:
http://www.4shared.com/file/vA7mxunb/Rope.html

I'm pretty busy these days, haven't got enough of time to continue on it.
To the start Previous 1 Next To the start
Log in to replyCarnage Contest overviewForums overview