How do I make people sit?

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

Post Reply
Divine Spirit
Private
Posts: 1
Joined: Sun Sep 01, 2002 12:39 pm

How do I make people sit?

Post by Divine Spirit »

Hi. Does anyone know how to make a normal door (non-rotating), and how to make people sit? Thanks.
kdja
Captain
Posts: 254
Joined: Wed Jun 19, 2002 1:08 am
Location: Ireland

Post by kdja »

Make a brush and apply a door texture to it.

No idea how to make AI sit.

kdja
TMT Owner and Admin

www.modtheater.com

For all your modding needs !!!!!!!
Oddball_Woof
Sergeant
Posts: 74
Joined: Tue Aug 06, 2002 9:32 am
Location: London UK

sitting animations exist and scripts

Post by Oddball_Woof »

ask wombat, the card players sit down from standing in his map so it must be in the cardgame.sc... a scripted animation. Whether they'll sit for another reason I don't know can't think of another time in SP game except in Jeep when the SAS guy is driving or at start in back of truck ...also kraauts in lorries...ummm there are a few occasions... so you might be able to convince engine using one of these scripts to do it.
Ask wombat hs's the man!
ScorpioMidget
Lance Corporal
Posts: 21
Joined: Thu Jun 13, 2002 9:57 am
Location: Notts, UK
Contact:

Post by ScorpioMidget »

you have to script the ai to sit

something like

$myai exec global/crouch.scr

for a player you can do

$player forcelegsstate CROUCH_IDLE

or in mp for a player

(after your trigger)
local.player = parm.other
local.player forcelegsstate CROUCH_IDLE
ScorpioMidget
Still has a soft spot for Mohaa.
Mirek
Colour Sergeant
Posts: 77
Joined: Mon Jul 08, 2002 2:12 am
Location: Melbourne, Australia
Contact:

Post by Mirek »

I did some tests and below is what I extracted from the animation used in the card game -


$sitman holster // hide gun
$sitman.origin = $chair1.origin // stand where the chair is
$sitman.angles = $chair1.angles // face the way the chair does
$sitman anim chair_radio_listenidle // the animation



I have a German Ai - $targetname = sitman
And a chair - $targetname = chair1

I found you have to make the chair into a script model otherwise the AI will sit in the air where u placed him.

I am sure there are different sitting positions, like on the back of the truck where they sit straight. Just have to find the animation refrence. :)


Cheers,
Mirek
Mapping !!! Who needs sleep anyway !?!?!?
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

AI properties

Post by tltrude »

Highlight the AI guy and hit key N. Click on "anim +" at the bottom and it will show you all the positions that that AI can do. Then just put the one you want in your script like this:

level waittill spawn

$officer1 anim lean_chair_legs
$dude2 anim idle_crouch_grenade

Note, the AI will probably stand if he hears you unless you disable his hearing. I'm sure there is more to it than that, but I hope this helps some, good luck.
Tom Trude,

Image
Mirek
Colour Sergeant
Posts: 77
Joined: Mon Jul 08, 2002 2:12 am
Location: Melbourne, Australia
Contact:

Post by Mirek »

MR tltrude u have been keeping secrets !!!!!!!! :lol:

I have just spend hours looking through files to find animations :cry: and all the while I could have done in RMohRadiant!?!?!?!?


Thanks Tom :D
Mapping !!! Who needs sleep anyway !?!?!?
Manstein
Lance Corporal
Posts: 13
Joined: Fri Jun 28, 2002 3:51 pm
Location: Trier Germany
Contact:

Post by Manstein »

hi,

i?m also trying to give the ai some animations, i tried out tltrudes and mirkes suggestions, but both didn?t work...

I?m using it in a map called test_anim.map and the console told me something of NULL applied to no listener or somehting like that...

Anyone know the answer?

Thanx in advance

Manstein
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

I think that should say 'cannot cast NULL to listener', which could be caused by anything, so please be somewhat more specific on the error message and the script command you're using.
UBER_SOLDAT
Warrant Officer
Posts: 127
Joined: Wed Aug 07, 2002 7:44 pm
Location: ENGLAND
Contact:

Post by UBER_SOLDAT »

this is from m4l2, and is for a truck driver:

$camptruck_driver exec global/disable_ai.scr
$camptruck_driver notsolid
$camptruck_driver rendereffects "-shadow"
$camptruck_driver anim_scripted opel_driver
$camptruck attachdriverslot 0 $camptruck_driver
$camptruck nodamage

youd leave out the attatchdriverslot, which is for putting him in a certain seat in the truck, and the nodamage bit, which makes the truck invincable. I havent tried any of this so it might not work. Try a different animation instead of opel_driver if it doesnt.
Mirek
Colour Sergeant
Posts: 77
Joined: Mon Jul 08, 2002 2:12 am
Location: Melbourne, Australia
Contact:

Post by Mirek »

Manstein,

You'll have to be more specific as to what u want done. I have had reasanable success with animation so if you say exactly what u are trying to do then I would love to have a go and maybe build a small test map.

Cheers
Mirek
Mapping !!! Who needs sleep anyway !?!?!?
Manstein
Lance Corporal
Posts: 13
Joined: Fri Jun 28, 2002 3:51 pm
Location: Trier Germany
Contact:

Post by Manstein »

Thanx, but I have fixed it by myself:D.

I put an "exec global/forceanim.scr in the script and it worked, hurra!

Cya
Manstein
Post Reply