• Parachute!
    329 replies, posted
I like to move around when I am a ragdoll.You can make a flying ragdoll thing out of thise.
So no one ever converted the model I made? Well someone should it looks better that the normal one. I could convert it but I don't know what parameters to set.
[QUOTE=mblunk]I just noticed that the ropes are rigid. To make the ropes non-rigid (meaning the rope can get bunched up instead of acting like a metal rod), replace the code on lines 52 and 53 of the autorun script, which look like this: [code] constraint.Rope( ply.chuteragdoll, chute, 7, 0, Vector(0,0,0), Vector(100,0,-20), 200, 0, 0, 2, "cable/rope", 0 ) constraint.Rope( ply.chuteragdoll, chute, 5, 0, Vector(0,0,0), Vector(-100,0, -20), 200, 0, 0, 2, "cable/rope", 0 ) [/code] With this: [code] constraint.Rope( ply.chuteragdoll, chute, 7, 0, Vector(0,0,0), Vector(100,0,-20), 200, 0, 0, 2, "cable/rope", false ) constraint.Rope( ply.chuteragdoll, chute, 5, 0, Vector(0,0,0), Vector(-100,0, -20), 200, 0, 0, 2, "cable/rope", false ) [/code] [b]Edit:[/b] Also, on line 34: [code] ragdoll:GetPhysicsObject():ApplyForceCenter(cvel*500000) [/code] From what I can tell, that's force applied to the ragdoll which is meant to conserve momentum between the player before they go into freefall and when they are turned into ragdolls. However, that's WAY too much force and sends your ragdoll flying in the direction you were moving when you went into free fall. This seems to be much closer: [code] ragdoll:GetPhysicsObject():ApplyForceCenter(cvel*100) [/code] [b]Edit:[/b] I made a few more mods myself (can go up and down, falls much slower, added simple vars), here's the entire code. [lua] /* Parachute Code by Thegrb93 [Kenny] Feel free to use it as you wish :D */ -- a few vars local chutemass = 10 --self explanatory local chute_lineardamping = 50 --damping of directional motion local chute_rotationaldamping = 0 --damping of rotation local ragdoll_momentum_preserve_force = 100 --when we remove the player and replace them with a ragdoll, this is how much force we should apply to the ragdoll to preserve the momentum of the player originally local ragdoll_pushforce = 2000 --how much force we apply when the player moves as a ragdoll hook.Add("KeyPress","Openandreleasechute", function(ply,key) if (key==131072) then if not ply.HasChute then return end if not ply.ChuteThink then ply.ChuteThink=CurTime() end if not (ply.ChuteThink<CurTime()) then return end ply.ChuteThink=CurTime()+1 if not ply.chuteragdoll then --Make Ragdoll local phys=ply:GetPhysicsObject() local cvel=phys:GetVelocity() local ragdoll = ents.Create( "prop_ragdoll" ) --Thanks Ulyssus for showing me how to mimic the ulx ragdoll command. ragdoll:SetPos( ply:GetPos() ) ragdoll:SetModel( ply:GetModel() ) ragdoll:SetAngles(Angle(90,ply:GetAngles().y,0)) ragdoll:Spawn() ragdoll:Activate() --ragdoll:GetPhysicsObject():SetMass(1) ragdoll.IsChuteDoll=true local curweps={} for k, v in pairs(ply:GetWeapons()) do table.insert(curweps,v:GetClass()) end ply.CurWeaponsP=curweps ply:SetParent( ragdoll ) ply:StripWeapons() ply:Spectate( OBS_MODE_CHASE ) ply:SpectateEntity( ragdoll ) ply.chuteragdoll = ragdoll ragdoll:GetPhysicsObject():ApplyForceCenter(cvel*ragdoll_momentum_preserve_force) else if ply.ChuteOpen then --cut the line chute_make_Normal(ply) return end local chute=ents.Create("prop_physics") chute:SetPos(ply:GetPos()+Vector(0,0,100)) chute:SetAngles(Angle(0,ply:GetAngles().y,0)) chute:SetModel("models/parachute/chute.mdl") chute.IsChute=true chute:Spawn() chute:GetPhysicsObject():SetMass(chutemass) chute:GetPhysicsObject():SetDamping(chute_lineardamping, chute_rotationaldamping) ply.ChuteOpen=true ply.Chute=chute ply.chuteragdoll:EmitSound(Sound("ambient/fire/mtov_flame2.wav"),100,100) local chutelocal, chutelocal2 = chute:GetRight()*40+chute:GetLocalPos(), chute:GetRight()*-40+chute:GetLocalPos() constraint.Rope( ply.chuteragdoll, chute, 7, 0, Vector(0,0,0), Vector(100,0,-20), 200, 0, 0, 2, "cable/rope", false ) constraint.Rope( ply.chuteragdoll, chute, 5, 0, Vector(0,0,0), Vector(-100,0, -20), 200, 0, 0, 2, "cable/rope", false ) end end end) hook.Add("Think","Addforcetoragdoll", function() for k, v in pairs(player.GetAll()) do if v.chuteragdoll then if v:KeyDown( 8 ) then local angle=v:EyeAngles():Forward( ) local phys=v.chuteragdoll:GetPhysicsObject() phys:ApplyForceCenter(Vector(angle.x,angle.y,angle.z)*ragdoll_pushforce) end if v:KeyDown( 16 ) then local angle=v:EyeAngles():Forward( ) local phys=v.chuteragdoll:GetPhysicsObject() phys:ApplyForceCenter(Vector(angle.x,angle.y,angle.z)*-ragdoll_pushforce) end end end end) function chute_make_Normal(ply) --Make Player normal if ply.chuteragdoll then local pos = ply.chuteragdoll:GetPos() pos.z = pos.z + 10 ply:SetParent() ply.chuteragdoll:Remove() ply.chuteragdoll = nil ply:Spawn() timer.Simple(.05,function() ply:SetPos( pos ) end) ply.HasChute=false ply.ChuteOpen=false if ply.Chute then ply.Chute:Remove() end ply.Chute=nil timer.Simple(.5,function() ply:EmitSound(Sound("npc/combine_soldier/zipline_clip1.wav"),100,100) end) ply:StripWeapons() local weptbl=ply.CurWeaponsP for i=1, #weptbl, 1 do ply:Give(weptbl[i]) end end end hook.Add("PlayerDeath","PreventGlitches", function(ply,wep,killer) if ply.HasChute then if ply.chuteragdoll then ply.chuteragdoll:Remove() ply.chuteragdoll = nil end ply.HasChute=false ply.ChuteOpen=false if ply.Chute then ply.Chute:Remove() end ply.Chute=false end end) hook.Add("CanTool","PreventToolingOfRagdoll", function(ply,tr,tool) local ent=tr.Entity if ent.IsChuteDoll then return false end end) hook.Add("PhysgunPickup","DontLetThemPhysgunPeople", function(ply,ent) if ent.IsChuteDoll then return false end end) hook.Add("PlayerDisconnected","DontLeaveShitBehind", function(ply) if ply.Chute then ply.Chute:Remove() end if ply.chuteragdoll then ply.chuteragdoll:Remove() end end) [/lua][/QUOTE]Using thise code you can go up and down when you are ragdoll? [b]EDIT...[/b] Its fun to use the parachute to move around on the ground as a ragdoll.[URL=http://imageshack.us][IMG]http://img511.imageshack.us/img511/122/gmflatgrass0054xj8.jpg[/IMG][/URL][URL=http://imageshack.us][IMG]http://img47.imageshack.us/img47/4361/gmflatgrass0055nx9.jpg[/IMG][/URL][URL=http://imageshack.us][IMG]http://img67.imageshack.us/img67/1929/gmflatgrass0057el8.jpg[/IMG][/URL][URL=http://imageshack.us][IMG]http://img47.imageshack.us/img47/4756/gmflatgrass0071av0.jpg[/IMG][/URL][URL=http://imageshack.us][IMG]http://img47.imageshack.us/img47/2378/gmflatgrass0072gt3.jpg[/IMG][/URL][URL=http://imageshack.us][IMG]http://img511.imageshack.us/img511/420/gmflatgrass0074zu5.jpg[/IMG][/URL]But you can't go up and down.:(
I also was unable to deploy my parachute. I know it CAN work I watched my friend do it minutes before I tried. After that we couldn't get it to work. We got like 3 successful runs out of it and it stopped... Gonna try reinstalling.
If the original parachute mod was deleted, and if this one is so buggy and crappy, why not just reupload the original and give credit to the creator?
What code do you have to add to make the ragdoll [u]move up and down?[/u]
This Might Sound Noobish How Do I Install It?? Please Respond
AWSOME!!! I used to do this using props. Improvements: 1.attach ropes to a backpack which goes on the player when he collects the 'chute. 2.with the arms free make the player able to shoot when parachutimg 3. improve the model of the 'chute 4.STOOL STOOL STOOL! 5.Get the makers of the oxford dictionary find or make a word to describe this!
AWSOME!!! I used to do this using props. Improvements: 1.attach ropes to a backpack which goes on the player when he collects the 'chute. 2.with the arms free make the player able to shoot when parachutimg 3. improve the model of the 'chute 4.STOOL STOOL STOOL! 5.Get the makers of the oxford dictionary find or make a word to describe this! [b]Edit:[/b] AWSOME!!! I used to do this using props. Improvements: 1.attach ropes to a backpack which goes on the player when he collects the 'chute. 2.with the arms free make the player able to shoot when parachutimg 3. improve the model of the 'chute 4.STOOL STOOL STOOL! 5.Get the makers of the oxford dictionary find or make a word to describe this!!
[QUOTE=DanishMoron]This Might Sound Noobish How Do I Install It?? Please Respond[/QUOTE] You got to place the files in the files EX. If you open the file it says lua then you go to your lua file then it will say autorun then place the files in the autorun folder to your garrys mod autorun folder.And it will also say entities.You open entities folder and place the entitie in the Garry's mod entities folder.And the Garry's Mod folder is loacated at C:\Program Files\Steam\steamapps\your Username\garrysmod\garrysmod\lua\entities If you have any problems just send me a message.
[QUOTE=DannyMartin]What code do you have to add to make the ragdoll [u]move up and down?[/u][/QUOTE] 1. Spawn a parachute sent and grab it, after fixing it with my code. 2. Press shift until you become a ragdoll without a parachute. Try to jump right before you hit shift so you turn into a ragdoll in the air, so you don't get stuck in the ground. 3. Hold backwards and look straight down.
[QUOTE=mblunk]1. Spawn a parachute sent and grab it, after fixing it with my code. 2. Press shift until you become a ragdoll without a parachute. Try to jump right before you hit shift so you turn into a ragdoll in the air, so you don't get stuck in the ground. 3. Hold backwards and look straight down.[/QUOTE] Tried that.It did not work
I gotta say, this [I]really[/I] needs to be made into a stool. Making wiremod parachutes is a bitch, and they look stupid.
can this be used in role play?
[QUOTE=DannyMartin]Tried that.It did not work[/QUOTE] Increase the ragdoll push force then. [b]Edit:[/b] Actually, noclip into the air a little, then try.
Why in God's name would you want it to go up and down, anyway? It's a fucking parachute, it's fine as is.
is it posible to make it work like a pakage strapt to somting and than with a wire inpute to releas it. Just like with a top fuel dragster car. this would be awesome. vehicle drop!!!!
Or, instead of a pointless wire input, just use a number pad button. Much easier. Less Laggy. No Gmod-Killing addon.
POINT LESS ? do you know how good wire is or is it "pointless" because you dont know how to use it ?
Everybody who tries to defend wire says, "THAT'S JUST CUZ YOO DON'T NO HWO TO USE ET". I, for one, know how to use wire, and think it's pointless, defeats the purpose of building in Garrysmod, and it's not enjoyable to execute or put together. These are opinions, get used to them. [b]Edit:[/b] Also, he's not calling wire itself pointless, he's stating that the use of a wire input would be unnecessary.
oh ok then :) how easy would it be to add a wire input ?
It doesn't matter, it's not going to be done.
Download + Lua King Dude, seriously, awesome. I've also noticed that if you stay with the parachute after you hit the ground, you can do a sort of creepy corpse glide with the movement controls. Not a complaint, I think it's cool.
@large aqua I was going to do it my self if its possible
Woo... You can't do that because it's not yours! If you just post it on Gmod.org, then we just report it because it's not yours!
[QUOTE=joost1120]Woo... You can't do that because it's not yours! If you just post it on Gmod.org, then we just report it because it's not yours![/QUOTE] And if you do that, you get banned from garrysmod.org for reporting for no reason!
and thats wear you wrong 1.who says I want to release it 2.who says i would upload it there
and thats wear you wrong 1.who says I want to release it 2.who says i would upload it there [b]Edit:[/b] dam can a moderator delete one of them post ?
[QUOTE=mblunk]Increase the ragdoll push force then. [b]Edit:[/b] Actually, noclip into the air a little, then try.[/QUOTE] Still did not work.
this goes in addons right?
Sorry, you need to Log In to post a reply to this thread.