Page 2 of 6
Re: [Code] Fast Roping Workshop
Posted: 2010-03-02 19:30
by j0g32
I don't think it would be possible throwing a rope out of the chopper; in any way !
Doesn't matter if you're just passenger or pilot. Both are part of the PlayerControlledObject "helicopter".
Try to make a jeep spawning next to your tank, if you press LMB. It won't work. This is what I call "hardcode": PCO can't have another PCO as "child" (if that's the correct term).
But maybe it could be possible doing this by using Python ? Try spawning a jeep next to the chopper/tank or any vehicle only when you sit inside and use the "commorose" (Q/T)...
FOBs spawn Jeeps after a certain amount of timne aswell...
Are the FOBs PCOs ? (^.^)
Re: [Code] Fast Roping Workshop
Posted: 2010-03-02 21:44
by sickly
j0g32 wrote:I don't think it would be possible throwing a rope out of the chopper; in any way !
Doesn't matter if you're just passenger or pilot. Both are part of the PlayerControlledObject "helicopter".
You'd have to exit the passenger mode first (exit coordinates would have to be inside chopper's cargo hold instead of outside chopper--next to the seat or something),
then drop the grappling hook, not before (i.e. not as passenger).
It can be done because I've done it--just that the chopper wasn't moving when I did the experiment.
It's hard to explain because it's not something that's normally done (i.e. physically entering the chopper rather than directly spawning into one of the passenger seats). Maybe there's a video of someone doing that but I can't find it.
(Btw it felt very realistic being able to move around normally the inside of the chopper like that, instead of instantaneously switching vehicle positions. Maybe someone could look into that as the norm; having to physically move into and out of the vehicle hold, only being able to select a seat once next to it. Just an idea.)
The main problem afaik isn't the getting into the chopper but the other issue with the hook/rope disappearing on a moving object.
(Correction: I was using the AIX mod to test--no grappling hooks in vanilla BF2. But I think they used the same blackhawk model so everything else would've been the same.)
Re: [Code] Fast Roping Workshop
Posted: 2010-03-12 06:07
by sickly
Tried to do the test again. I was wrong about the getting in part; couldn't do it by climbing onto an object. The only way was to throw the GH up to the chopper (I landed it on the edge of a roof) and climb up, then I'd end up inside the chopper. It's actually more of a glitch, where you're standing inside the floor or something. The BF2 Blackhawk's hold is inappropriate for this.
Anyway, this is what I was talking about (throwing grappling hook from the helicopter's cargo hold):
YouTube - Project Reality chopper action and fastroping.
[Edit: sorry couldn't get the video to appear--just follow the link.]
(Just skip the heli stunt stuff and go to 0:55.)
Seems to work well enough there, except for the ropes staying in the air like that.
Re: [Code] Fast Roping Workshop
Posted: 2010-04-02 01:42
by CCCode
I got an idea, what about this:
Attach rope to the heli and make the heli shoot a projectile witch somehow is attached to the other end of the rope or atleast pull it.
Now im not sure if it is possible to attach the other end of the rope but if it, this might be something i guess.
Also one of the passagers should be the one controlling the rope.
Re: [Code] Fast Roping Workshop
Posted: 2010-04-02 02:45
by Wilkinson
CCCode wrote:I got an idea, what about this:
Attach rope to the heli and make the heli shoot a projectile witch somehow is attached to the other end of the rope or atleast pull it.
Now im not sure if it is possible to attach the other end of the rope but if it, this might be something i guess.
Also one of the passagers should be the one controlling the rope.
Choppers could shoot the projectile from the co-pilot seat. we've seen this from the Merlin door and such.
Even if this was done, Players couldn't attach to the rope.
I dont know if we made the 8th Seat the Fast-Rope Seat. but it would tempt people to be noobs and ride on the outside of the chopper. Something that looks bad, tacky, and inefficient.

Re: [Code] Fast Roping Workshop
Posted: 2010-04-02 13:25
by CCCode
How about this; the zipline spawns a object at its base and attaches to it. Now if we could use that attach code we could fire a grapple (without the hook) and then attach the base to the helo we got a pretty good fastrope. (Thanks to †Roттωειℓεя† for the zipline idea!)
Re: [Code] Fast Roping Workshop
Posted: 2010-04-02 13:54
by †Roттωειℓεя†
I think we can also use the C4 sticky code. (CCCode's idea

) I just think tough that if we are able to shoot ropes from one on the right and one on the left, can both left seated players use the left rope? Or will we have to do a rope for each and every one?
I also think that if we just make fast ropes for just one player it's better. So whoever doesn't want to go out, doesn't. So that way everyone can leave at his will. We might add that if Co-Pilot or Squad Leader initiates the fast ropes then everyone is "ordered" to get down, and at that point will all necessary drops drop.
Thanks
†Roттωειℓεя† (and CCCode for his idea)

Re: [Code] Fast Roping Workshop
Posted: 2010-04-03 00:53
by CCCode
†Roттωειℓεя† wrote:I think we can also use the C4 sticky code. (CCCode's idea

)
Now that idea was actually just make a new rope projectile that sticks like the C4 and add a barrel on each side of the heli that is pointing at it or maybe make them fire the rope onto the roof inside the heli.
Though i thought your idea was a bit better if it is possible at all.
Got pretty much everything figered out here just needs a way to make the troops slide down at a keypress or when exited heli.
Re: [Code] Fast Roping Workshop
Posted: 2010-04-03 09:55
by Hjid
First of all: You can't shoot the grappling hook rope projectile from a vehicle.
Second: None of us has gotten the sticky C4 code to work on the ropes.
But I think you are thinking in the right direction, having the visual rope and the vehicle the player have to slide down in as two separate objects.
As for getting the soldiers to slide down is not as tricky as getting the ropes to fall down.
1. When a player exits the heli he is exited inside of the heli. The heli would have to stay nearly completely still for the player to survive. (BF2 Engine )
2. At the exit of of the heli where there should be fastropes, there are spawned "dummy" vehicles that hangs on to the heli until someone enters it. (A dummy vehicle is just an invisible vehicle)
3. The player just need to enter these dummy vehicles as normal vehicles (Assuming that the entry points of the heli is far away)
4. By the use of either gravity or force objects, the player in the dummy vehicle is sliding down to the ground.
5. When the dummy vehicle has reached the ground, the player can exit with pressing "E", like in normal vehicles.
As for the ropes you will either have to spawn an invisible bot that throws the rope, or make the rope an animated object or weapon.
Re: [Code] Fast Roping Workshop
Posted: 2010-04-04 12:58
by CCCode
Hjid wrote:First of all: You can't shoot the grappling hook rope projectile from a vehicle.
You can shoot a projectile with a rope attached to it from a vehicle, just not the hook somehow.
Also lets get bk at rotty's idea witch might even have a little chance

Re: [Code] Fast Roping Workshop
Posted: 2010-04-20 20:12
by Hjid
I still haven't got the rope to get shot from a vehicle by attaching it to another projectile
I'm currently trying out to make the ropes as animated bundles, but I'm wondering about one question:
Can you succesfully spawn an animated object with python?
If you can, there should be no problem and the fastropes should work. But since the ropes are static and don't have any collision, the heli must either only be able to drop the ropes at a certain height above the terrain/object, or we would have to make several animated ropes with different length.
BTW: Do anyone know about a good to tutorial for getting animated objects into BF2?
Re: [Code] Fast Roping Workshop
Posted: 2010-05-21 22:21
by j0g32
Hjid wrote:I still haven't got the rope to get shot from a vehicle by attaching it to another projectile
I'm currently trying out to make the ropes as animated bundles, but I'm wondering about one question:
Can you succesfully spawn an animated object with python?
If you can, there should be no problem and the fastropes should work. But since the ropes are static and don't have any collision, the heli must either only be able to drop the ropes at a certain height above the terrain/object, or we would have to make several animated ropes with different length.
BTW: Do anyone know about a good to tutorial for getting animated objects into BF2?
You've got it ! I'd go the same "way"...
Nevertheless, I'd like to present some new ideas/tips but they were already mentioned before. Im sorry that I don't know who had talked about the following (in order to give back the credits):
Well, in Sandbox mod you are able to "FREEZE" objects; especially vehicles.
Someone used a freezed but pilot-manned "merlin" and threw out the rope from the back door.
Then he slid down.
Well, to be honest this is nothing revolutionarily new.
I see a new point to begin with: use the sbx "tools"/codes (if possible) for freezing and spawning objects. In this case this will be the helicopter itself and of course the rope. Maybe some "helper-objects". Depends on the way of thinking. As far as I know this was not done by python but I'm not 100per-cent sure about this.
Maybe I just wasted my time by writing these lines because no one is interested in fastroping anymore - I don't hope so ...
all the best
j0g32
Re: [Code] Fast Roping Workshop
Posted: 2010-05-21 22:46
by Dev1200
So question
Why don't you just have the spawnpoint inside of the vehicle, like the chinook for example, and then throw a rope off of it? Gives the same effect ^^
Re: [Code] Fast Roping Workshop
Posted: 2010-05-22 17:16
by j0g32
I think the interior of a UH-60 Blackhawk is way too small for a spawn standing upright...
=> glitches
you thought of that stuff, right ?
YouTube - Project Reality chopper action and fastroping.
Re: [Code] Fast Roping Workshop
Posted: 2010-05-23 15:19
by dunem666
If its possible in BF2142, it MUST be possible somehow on BF2/PR.
Has anyone looked into the Vehicle models rather than all the code stuff?
EXAMPLE
The Tailgate on the chinook opens and closes, why not add a rope to a swinging door on a BH?
Chage the placement of where the player exits the vehicle to where the rope is... jump out... grab rope... slide down.
Everyone is laffing at me right now but Georgian conflict use this system with there winch system. Just lame MOD devs being anal about sharing their work

Re: [Code] Fast Roping Workshop
Posted: 2010-05-23 18:46
by Hjid
I understand why the Georgian conflict devs won't share their stuff with other mods. Being a small mod they really need to have some unique features to attract players. Being a realism mod, they have a hard competition with PR.
But I have some good news
If you add an animated static (like the oil pumps in vBF2) to a vehicle, you will be bale to spawn them with python on a dedicated server. I am currently trying to make the ropes as animated bundles and it is working out quite well. I have succesfully managed to import a simple animated yellow box into bf2 without bugs, and I'm currently trying to animate the rope objects.
The "freeze" command in sandbox is infact pure python coding and can easily be used for holding the heli still. To check if the heli is high enough over the ground you could either shoot some sticky projectiles or projectiles that won't slide downhill and chack their height or you could make python read an external heightmap image of the map like in the wookie sniper mod.
I am quite busy at the time so don't expect me to have this finished in a week. If you want to help me, feel free to provide refernces of fastropes in real life and later on, testing stuff.
Anyway, the fastropes looks possible to do now, but don't be dissapointed if they don't work. I don't really see the need for fastropes when the helis has no collision on the rotors

. But if the devs change their minds and somehow adds them, then fastroping might be a preferred way of insterting people.
Re: [Code] Fast Roping Workshop
Posted: 2010-05-25 00:12
by Gosu-Rizzle
Hjid wrote:
Anyway, the fastropes looks possible to do now, but don't be dissapointed if they don't work. I don't really see the need for fastropes when the helis has no collision on the rotors

. But if the devs change their minds and somehow adds them, then fastroping might be a preferred way of insterting people.
Sounds great, good job Hjid! And im sure that if fastropes actually make it into PR it will be the
ONLY way to insert people
Keep it up, good luck

Re: [Code] Fast Roping Workshop
Posted: 2010-05-27 22:43
by j0g32
didn't I say that thousands of times ?
It is possible !^^
Great job dude, hang on, hang on !
If you need any support let me know I'd really like to help you
All the best
j0g32
Re: [Code] Fast Roping Workshop
Posted: 2010-05-28 05:33
by Imchicken1
jw, and this has prob been suggested, but i've never seen anyone suggest the Ziplines from BF2 SF. Would those be any easier than grappling hook?