Skip to content
View in the app

A better way to browse. Learn more.

LCPDFR.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

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

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

Mustu

Members

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. 

TDeny

Members

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

BroCop

Members

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Add a comment...

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.