Home   Help Search Login Register  

Author Topic: climbing over fences  (Read 964 times)

0 Members and 2 Guests are viewing this topic.

Offline penguinman

  • Contributing Member
  • **
  • Money is worthless, just paper, ink, and threads
climbing over fences
« on: 30 Apr 2005, 01:30:24 »
could sombody make a script that simulates climbing over a fence, u could use the get in vehicle anim and then some other thing,  can it be done?

thanks

Offline Roni

  • Members
  • *
  • Play the Game !
Re:climbing over fences
« Reply #1 on: 30 Apr 2005, 04:57:44 »
Easy as !

I've already got a Jump script that uses a Crouch anim and some position offsets, I could rig up something using the Climb Ladder or Board Vehicle anims for climbing.

Say the word and I'll try to rig something up.

cheers



roni

Offline Morglor9

  • Members
  • *
Re:climbing over fences
« Reply #2 on: 30 Apr 2005, 06:22:41 »
consider this "the word". the script would be very handy. is it possible to make it activate if the player is at any fence, rather than just certain fences?
Cymbaline

Offline Roni

  • Members
  • *
  • Play the Game !
Re:climbing over fences
« Reply #3 on: 30 Apr 2005, 07:14:11 »
In the past I used to make these sorts of scripts as addactions so that the player could Jump or whatever any time he wanted.  But since I usually play MP it can get messy when 2 or more players stand next to each other - the addactions come up for anyone within range, so we used to have fun "goosing" each other and watching them bounce !

If you want I can make it a radio call or a continuous script that checks for nearby named objects.

The problem with the first option is that you'll need to add a trigger to your mission to make it work, the problem with the seocnd is that unless you name every single climbable object you may get frustrated ("Whaddaya mean I can't climb this haystack ? !").

Check back in 4-6 hours . . .



roni

Offline penguinman

  • Contributing Member
  • **
  • Money is worthless, just paper, ink, and threads
Re:climbing over fences
« Reply #4 on: 30 Apr 2005, 07:23:10 »
cool roni,

i wanted to be used by AI so i was planing on putting very long thin trigers over the section of fence I want them to jump.

if it helps its the kind of fence that is on kolgujev,(not a mesh fence but a painted wood dark brown fence.)


thanks

Offline RujiK

  • Members
  • *
  • KoKo Puh-Fizzles!
Re:climbing over fences
« Reply #5 on: 30 Apr 2005, 17:26:35 »
I have made a jumping script as well, however instead of having an action you just push double forward really fast.
I like your approach, lets see your departure.
Download the New Flashlight Script!

Offline penguinman

  • Contributing Member
  • **
  • Money is worthless, just paper, ink, and threads
Re:climbing over fences
« Reply #6 on: 30 Apr 2005, 22:39:08 »
I ithink an action would work better for climbing but double forward is better for jumping, but i dont need either cause im using triggers, I hope roni can do it, its important to my mission, thanks roni and everybody else

Offline Morglor9

  • Members
  • *
Re:climbing over fences
« Reply #7 on: 01 May 2005, 06:28:12 »
you mentioned a jump script. where to get it? and how high does it make the dude jump?
Cymbaline

Offline Roni

  • Members
  • *
  • Play the Game !
Re:climbing over fences
« Reply #8 on: 02 May 2005, 00:25:55 »
Hi All

Well, here it is !  Attached please find the Jump script, as promised.  Sorry about the delay penguinman, I was messing around with "super jumps" and floating characters and got sidetracked.   :D

The zip file contains the script and a mission file to go with it.  The mission simply consists of one man with the script as an addAction, as well as two fences in front of him with the script attached to triggers.  Try both ways and see what you like.

The mission contains a present animation - I tried heaps but if anyone knows of a better one then by all means please feel free to substitute your own.  The mission also contains a custom sound, feel free to delete or replace this if you don't like it.

You can change the jump height by changing the value at the end of the _xZ assignment.  A value of 5 might look a bit high, but it does allow you to jump over most fences that look like they should be jumpable.  For a laugh, try a value of 250 and watch your man go to 1000 feet before splatting back to earth !   :beat:

Speaking of which - my little sidetracks (above) revealed that while a man is in the air he can't change direction or change his velocity vector.  One little test simply kept the targets upward velocity near zero with a very fast loop - this had the effect of making him "float" or "surf" if he was low to the ground !  If anyone wants I can add that bit back !

Good luck with it !

Cheers



roni

Offline Morglor9

  • Members
  • *
Re:climbing over fences
« Reply #9 on: 02 May 2005, 05:06:46 »
thank you! muchos gracias! (thank you in many other languages here)!
Cymbaline

Offline penguinman

  • Contributing Member
  • **
  • Money is worthless, just paper, ink, and threads
Re:climbing over fences
« Reply #10 on: 03 May 2005, 05:18:07 »
nice but  a jump script wont work for climbing over fences.

i still tried using this one but the fences are so high that the spetznatz going over it look completely inhuman with their jump setting put high enough to just barely get over which still has them jumping like 9 feet up.

I was hoping for somthing like the get in vehicle anim done while moving the man up  folowed by the crouch anim when the get to the top of the fence and then maby a crouch again when the hit the ground on the other side,  to make them look like their scaling the fence then droping off the other side in a way. the sound is good though.  

could you please try and make that.

however the jump script has given me new ideas for my mission and im glad you made that.

thanks

Offline Roni

  • Members
  • *
  • Play the Game !
Re:climbing over fences
« Reply #11 on: 03 May 2005, 05:31:51 »
Hi penguinman

Thanks for that.  Yeah, I tried various settings and the +5 velocity seemed to be the lowest that worked, but it still makes the man look like he's jumping 10 feet or whatever.

What I need is a one handed "hold and swing over" type animation.  I went through the anims list and tried heaps of them but this was the best that I could find (One other candisate was a "run to lying" anim - it made it look as if the guy was leaping over the fence and rolling . . . ).

If anyone knows the name of the "climb ladder" anim or knows a good animator then please let me know !

Cheers



roni

PS - I will work on your suggestion pm !

Offline penguinman

  • Contributing Member
  • **
  • Money is worthless, just paper, ink, and threads
Re:climbing over fences
« Reply #12 on: 03 May 2005, 18:44:39 »
i can make an anim  for that and will get it to you as soon as i can