Home   Help Search Login Register  

Author Topic: Script idea.  (Read 1412 times)

0 Members and 1 Guest are viewing this topic.

Echo5Hotel

  • Guest
Script idea.
« on: 01 Dec 2004, 16:40:36 »
I was thinking about a CSAR mission that I would like to create and realized that I couldn't because there is no way for a player to actually carry a wounded soldier in th game as far as I know.  Would it be possible to create a script to actually have a player carry a wounded soldier?  It could add a lot of possibilites to single and multi-player missions.

Offline Triggerhappy

  • Contributing Member
  • **
  • Llama, it's what's for dinner.
Re:Script idea.
« Reply #1 on: 01 Dec 2004, 22:16:59 »
it would be possible, but it would probably look wierd because there aren't any good anims to use, maybe in an anim pack but not that come with the game. except maybe the heal at medic anim for when you're prone

Offline Mr.Peanut

  • Former Staff
  • ****
  • urp!
Re:Script idea.
« Reply #2 on: 09 Dec 2004, 17:00:43 »
I think it can be done fairly easily, and is a good idea.

Consider all the possible situations.
For example:

1)Is wounded allowed to jump out of bearer's arms?
2)Bearer is crippled or killed while carrying wounded. Wounded dropped.
3)Wounded is killed while being carried. Wounded dropped.
4)Bearer and or wounded attempt to board a vehicle. Wounded dropped.
5)Bearer and or wounded attempt to use weapon/binoculars or do any other action. Wounded is dropped.
6)Another player attempts to pick up either wounded or bearer. Wounded is dropped.

If anyone has a suggestion on how to deal with 5) I will attempt to write this script. I haven't a clue how to trap actions.

Who cares if it doesn't look that good as long as it works!
« Last Edit: 09 Dec 2004, 17:02:02 by Mr.Peanut »
urp!

Offline Blip

  • Members
  • *
  • ...Old OFP FART...
Re:Script idea.
« Reply #3 on: 10 Dec 2004, 01:58:29 »
...NIGHT WALKER....

Offline Mr.Peanut

  • Former Staff
  • ****
  • urp!
Re:Script idea.
« Reply #4 on: 10 Dec 2004, 03:02:29 »
Might as well delete this thread now!
urp!

Offline Blip

  • Members
  • *
  • ...Old OFP FART...
Re:Script idea.
« Reply #5 on: 11 Dec 2004, 22:58:12 »
There is also a script that simulates carrying a guy on a gurney in the editors depot under the misc. section

Later,

Blip
...NIGHT WALKER....

Offline General Barron

  • Former Staff
  • ****
  • Semper Fi!
Re:Script idea.
« Reply #6 on: 14 Dec 2004, 04:08:18 »
I think it can be done fairly easily, and is a good idea.

Consider all the possible situations.
For example:

1)Is wounded allowed to jump out of bearer's arms?
2)Bearer is crippled or killed while carrying wounded. Wounded dropped.
3)Wounded is killed while being carried. Wounded dropped.
4)Bearer and or wounded attempt to board a vehicle. Wounded dropped.
5)Bearer and or wounded attempt to use weapon/binoculars or do any other action. Wounded is dropped.
6)Another player attempts to pick up either wounded or bearer. Wounded is dropped.

If anyone has a suggestion on how to deal with 5) I will attempt to write this script. I haven't a clue how to trap actions.

Who cares if it doesn't look that good as long as it works!


Actually, you can get around these complications surprisingly easily. I did it by making a looping carry animation, that essentially forces the bearer to walk forward. He can't do any other type of movement, except turn left or right. Then you just have a script that constantly setpos's the carried man to where the bearer is, again using a custom animation. The bearer initiates this script via an action attatched to the corpse to be carried.

In that looping script, you check to see if the player has stopped moving (speed ~ 0). If that happens, the script ends. This can happen by either the bearer being killed, or by the bearer using another action that plays a non-moving animation.

This works surprisingly well, and you can even order AI under your control to move to certain locations this way. The only reason why I don't have it fully working is because I don't have the pick up/put down animations working properly yet, and it is untested in MP.
HANDSIGNALS COMMAND SYSTEM-- A realistic squad-control modification for OFP
kexp.org-- The best radio station in the world, right here at home! Listen to John Richards!

Offline penguinman

  • Contributing Member
  • **
  • Money is worthless, just paper, ink, and threads
Re:Script idea.
« Reply #7 on: 14 Dec 2004, 06:30:22 »
Quote
In that looping script, you check to see if the player has stopped moving (speed ~ 0). If that happens, the script ends. This can happen by either the bearer being killed, or by the bearer using another action that plays a non-moving animation.

but what if the player is just stopping to take cover under fire.

Offline pexmo

  • Members
  • *
  • I'm a llama!
Re:Script idea.
« Reply #8 on: 14 Dec 2004, 14:19:02 »
Blip: whats the script called that u mentioned being under misc in ed depot? Cant find one fitting what you described.

Offline SEAL84

  • Members
  • *
  • Always lurking
Re:Script idea.
« Reply #9 on: 14 Dec 2004, 23:45:29 »
but what if the player is just stopping to take cover under fire.

I'd imagine that if you're taking cover from enemy fire, you'd put the guy you're carrying down, then pick him up when you're ready to move again.

Offline Blip

  • Members
  • *
  • ...Old OFP FART...
Re:Script idea.
« Reply #10 on: 15 Dec 2004, 01:37:59 »
pexmo-

Here is a link to the stretcher simulation.  It works well, although technically there is no stretcher.

http://www.ofpec.com/editors/resource_view.php?id=472

Blip  :joystick:
...NIGHT WALKER....