Crouching soldier/laying down soldier

Post your scripting questions / solutions here

Moderator: Moderators

User avatar
k47a
товарищ
Posts: 810
Joined: Fri Mar 25, 2005 1:19 pm

Post by k47a »

lizardkid wrote:ooo.. i think i tried your mod once, some server tried it. had people proning and glitching through the ground etc...
Aw, yeah, I saw people doing that in some MP games... This just sucks! :? I mean, it's like cheating! The guy killed every kraut 'round him as they just didnt see him! Okay, I wasn't on the Kraut side, so it didn't matter :D , but still, I don't think it's fair.
Image
User avatar
k47a
товарищ
Posts: 810
Joined: Fri Mar 25, 2005 1:19 pm

Post by k47a »

I have a question: Is there a way to make just the opposite? That is, making a lying AI get up? I put a deadbody in my SP map, and now I'd like to make him sit/get up - like the ones you shoot, then they fall on their knees and then flat on the ground if you finish 'em off... Is it possible to make it vice versa?
Image
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post by lizardkid »

no the deadbodies are static models, they can't animate. but proned AI all you need do it tell him to go to stand or crouch or move somewhere or whatever and he'll get up.
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
User avatar
k47a
товарищ
Posts: 810
Joined: Fri Mar 25, 2005 1:19 pm

Post by k47a »

Alright. How do I make a proned AI? (Is a proned AI actually lying on the floor?) And, a crouching or whatever AI: I can manage that with pathnodes, right?
Image
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post by lizardkid »

yes, but it's easier to make them move while crouched and to prone in a spot and stay proned (i had so much trouble with this) if you script it.

stand/move standing:

Code: Select all

$AI exec global/stand.scr
$AI walkto $pathnode
$AI runto $pathnode
crouch/mve crouching

Code: Select all

$AI exec global/crouch.scr
$AI crouchto $pathnode
$AI exec global/crouchrunto.scr /*(this one i've never used, but i saw it in the global folder, you may want to experiemnt with it)*/
prone:

Code: Select all

$AI exec global/prone.scr
$AI proneto $pathnode /*(again, never used it because i usually use prone to hide snipers in bushes or soldiers in trenches)*/
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
Post Reply