Making a real SMG for infantry

Tutorial for Red Alert 2 RA2, Yuri's Revenge YR

Avatar of Nighthawk

Nighthawk

Category: Code
Level: Expert
Created: Wednesday July 29, 2009 - 3:35
Updated: Wednesday July 29, 2009 - 3:36
Views: 2417
Summary: Create a more realistic looking SMG on infantry units.
Rating
  • Staff-
  • Members-
  • Average-

0 votes

Original Author: Martin Killer

At first you need to work with art.ini, rules.ini & SHP Builder.

This is how I made a submachine gun using a SEAL made by Cboidy888, avalaible for download in Sleipnir Stuff.

1. I have to check a weapon which uses my soldier, it is M60 and we need to modify some things

              
Code


[M60]
Damage=7 <- 7 dmg per 1 shot
ROF=30 <- it must be same value as in Burst
Range=4
Burst=30 <- ammunition in magazine
Projectile=InvisibleLow6 <- new projectile, if you want to give him a bullet, of course you can edit old projectile
Speed=100
Warhead=SA
Report=GIAttack
OccupantAnim=UCFLASH


2. Check Warhead of this weapon

              
Code
;

general multiple small arms fire
[SA]
;DB Changed how Plate interacts with this warhead on 6/6. See also AP warhead.
;Verses=100%,80%,70%,50%,25%,25%,75%,50%,25%,100%,100%
Verses=100%,80%,80%,50%,25%,25%,75%,50%,25%,100%,100%
InfDeath=1
AnimList=PIFF <- you only have to edit this, replace old PIFFPAFF with PIFF used by Civilian's pistols.
Bullets=yes
ProneDamage=70%


3. When it's done ,you only need now to modify SHP Sequence. After releasing 1 bullet your soldier changes frames from FireUp to Ready/Guard what looks like that

User image -> User image

So you need to modify a sequence

              
Code
[SealSequence]
Ready=165,1,6
Guard=165,1,6
<- You only change those frames. It uses 1 frame from each direction when he shoots. Also it looks much cooler when he aims his gun everytime :P.
Walk=8,6,6
Idle1=56,15,0,W
Idle2=71,15,0,E
Crawl=86,6,6
Prone=216,1,6
Die1=134,15,0
Die2=149,15,0
FireUp=164,6,6
FireProne=212,6,6
Down=260,2,2
Up=276,2,2
Paradrop=602,1,0
Deploy=57,3,0
Deployed=86,1,6
DeployedFire=212,6,6
Undeploy=64,8,0

Cheer=603,8,0,E
Tread=340,6,6
Swim=388,6,6
WetAttack=436,6,6
WetIdle1=484,15,0,S
WetIdle2=499,15,0,E
WetDie1=514,15,0
WetDie2=529,15,0
Die3=0,1,1
Die4=0,1,1
Die5=0,1,1
Panic=8,6,6


In this sequence you also have deploy frames.

BTW you must remove gun smoke with SHP Builder, and use ANIM tag in rules.ini.

4. And voila, your soldier now have a really good submachine gun without skipping frames from Ready/Guard to FireUp.

Credits

Original AuthorMartin Killer
Original AuthorMartin Killer
Original AuthorMartin Killer
Original AuthorMartin Killer

Return to top