Jump to content

[TUT] How to make the SWAT/NOOSE peds stand up and use their rifles correctly


BroCop

So the other day I was messing around with openiv's new animation viewer. This led me to look around at just how walking styles are set up. I noticed that most of the animation packets are the same (ie, they all have 'idle' 'start walk' 'walk' etc...), which is why you can change pedestrian walking styles. This made me wonder if I could finally get SWAT guys to stand correctly and use their rifles right when walking. I found all of the unique movements (hand signals) that SWAT peds use are in their own file that doesn't show up in peds.ide. I hunted around for the walking/idle style that the cops holding assault rifles on guard duty use, and found it! It's called move_rifle.

So, how do we use it?

Let's look at the vanilla SWAT line:

M_Y_Swat, M_Y_Swat_p, 	COP, 	move_m@swat, GESTURES@MALE,	GESTURES@M_PHONE,FACIALS@M_LO,	visemes@m_lo,	0, 	move_m@swat,	null,	-1,-1,	PED_TYPE_PLAYER,	VOICE_PLY_CR, 	VOICE_PLY_CR

The lines breakdown somewhat like this:

M_Y_SWAT = This is simply saying what ped you're using. It corresponds to the .wdd in componentpeds.img.

M_Y_SWAT_P = This is the helmet/hat that the ped uses. It is almost always the same as the ped name, just with _p. Write NULL if you don't want them to have hats.

COP = This is the relationship group it is in. COP, CIVMALE, CIVFEMALE, etc...

move_m@swat = This is the important one. This is the default walking style of the pedestrian in question. This covers how the walk, idle, and run. We'll be changing this to move_rifle.

I don't specifically know what the rest of the lines are, but I believe they deal with how the ped gestures and uses phones.

Sure enough, it works fine! Here's a line for the regular NOOSE peds (yes, it is the same even if you've modified the texture or something)

M_Y_Swat, 		M_Y_SWAT_P, 		COP,	 		move_rifle,		GESTURES@MALE,		GESTURES@M_PHONE,	FACIALS@M_LO,		visemes@m_lo,		0, 		move_rifle,		null,			-1,-1,		PED_TYPE_PLAYER,	VOICE_PLY_CR, 		VOICE_PLY_CR

And here's the line for (removes the spawning of NOOSE helmets. If you find the idea of helmets randomly exploding out of cops heads the first time they get shot funny, than use the first line.)

M_Y_Swat, 		null, 		COP,	 		move_rifle,		GESTURES@MALE,		GESTURES@M_PHONE,	FACIALS@M_LO,		visemes@m_lo,		0, 		move_rifle,		null,			-1,-1,		PED_TYPE_PLAYER,	VOICE_PLY_CR, 		VOICE_PLY_CR

So there you go. The rather common problem has been solved!

(note to mods, I'll be adding this to the tutorial section in just a second.)



User Feedback

Recommended Comments

You can actually change this in trainer as well. Just go to Model Spawning>Walk style menu>and navigate until you see like cop or something. 

Share this comment


Link to comment
Share on other sites

aight,sorry for the nooby question but,how do I get to the line needed,I got to the animation viewer and actual animation I need,but how do I find the S.W.A.T. line to change it

Share this comment


Link to comment
Share on other sites

Oh, there's no need to actually use the animation viewer. This is something you only edit in the peds.ide file.

Share this comment


Link to comment
Share on other sites


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×