Home   Help Search Login Register  

Author Topic: Hiding bodies without being BlackOps  (Read 2029 times)

0 Members and 1 Guest are viewing this topic.

mikeb

  • Guest
Hiding bodies without being BlackOps
« on: 25 Aug 2002, 15:14:13 »
Hey all,

Does anyone know how to give a non-blackops player the ability to hide bodies?

MikeB

mikeb

  • Guest
Re:Hiding bodies without being BlackOps
« Reply #1 on: 25 Aug 2002, 15:15:56 »
...oh yeah.... and doe hiding bodies in SP actually make a difference?  Sometimes in my missions I've created, guys don't even look twice (There isn't an extra bit of code you need to write is there?

Offline Messiah

  • Honourary OFPEC Patron & Drinking Buddy of Wolfsbane
  • Honoured Contributor
  • ***
  • OFPEC Veteran
    • Project UK Forces
Re:Hiding bodies without being BlackOps
« Reply #2 on: 25 Aug 2002, 16:29:24 »
theres a script to  check if bodies are hidden and then u can make the ai react accordingly
Proud Member of the Volunteer Commando Battalion

Offline Wolfrug

  • Addons Depot
  • Former Staff
  • ****
  • Official OFPEC Old Timer
Re:Hiding bodies without being BlackOps
« Reply #3 on: 25 Aug 2002, 19:46:26 »
Yes, found in our snippets section. Hmmmm. damn :)

i don't have it, but if anyone else does, please attach if you feel like it  ;)

in SP, no, not really. It's war, after all, why should the AI get all upset over some dead comrades lying about. Except if they're on guard duty. But hey, that's what we've got scripting for! :toocool:

Hm, it's probably possibly yes: the "hide body" is really exactly what it looks like: sinking the body below the ground. So scripting it is relatively easy, basically what you would need is a script which checks for any dead units in your vicinity, and then "addactions" a new "Hide Body" action once you're close enough (and executes the "grab item" animation).

Don't have time to write it down & playtest it right now though...hmm.  :P Ah well...

Wolfrug out.
"When 900 years YOU reach, look as good you will not!"

Offline Gastovski

  • Members
  • *
  • #loop; Gastovski setdammage 0; ~0.01; goto "loop";
    • Falklands Mod
Re:Hiding bodies without being BlackOps
« Reply #4 on: 26 Aug 2002, 00:40:52 »
The cript to check if a body is hidden checks the height of a body. If it is less than 0 it is true...

mikeb

  • Guest
Re:Hiding bodies without being BlackOps
« Reply #5 on: 26 Aug 2002, 03:13:22 »
Oh OK!!

I think I can write one then so I'll solve this problem for now.  The fact that the script does/will exist in the new site means that I shouldn't  :-\ have to check this again!

Cheers all

M