Posted: Wed Apr 15, 2009 3:01 pm Post subject:
Helicipter doesn't want to die // RA2
Subject description: Shooted helicopter fall down and don't die
The helicopter was shooted down, he blowed up, falled down and after this he is lieing on the ground with 1 hell and continues moving his rotors.
What can cause this bug?
Unit was added to C&C Reloaded mod
Rules.ini
; ka50
[ka50s]
UIName=ka50
Name=ka50
Prerequisite=stabilizationbuilding
Primary=;BlackHawkCannon
Strength=175
Category=AirPower
JumpJet=yes
Armor=light
TechLevel=7
Sight=7
RadarInvisible=yes
Landable=yes
PipScale=Passengers
Passengers=5
Speed=14
PitchSpeed=1.1
JumpjetSpeed=30 ;params not defined use defaults (old globals way up top)
JumpjetClimb=10
JumpjetCrash=40 ; Climb, but down
JumpJetAccel=12
JumpJetTurnRate=6
JumpjetHeight=500
JumpjetWobbles=.01
JumpjetDeviation=1
Owner=Russians,Confederation,Africans,Arabs
Cost=1000
Points=15
ROT=5
Crewed=yes
ConsideredAircraft=yes
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
Maxdebris=3
VoiceSelect=BlackOpsSelect
VoiceMove=BlackOpsMove
VoiceAttack=BlackOpsAttackCommand
VoiceCrashing=BlackOpsVoiceDie
DieSound=
CrashingSound=BlackOpsDie
ImpactLandSound=GenAircraftCrash
;Locomotor={4A582746-9839-11d1-B709-00A024DDAFD1} ;flying
Locomotor={92612C46-F71F-11d1-AC9F-006008055BB5} ;jumpjet
MovementZone=Fly
DamageParticleSystems=SparkSys,SmallGreySSys
;AuxSound1=BlackOpsTakeOff ;Taking off
;AuxSound2=BlackOpsLanding ;Landing
ThreatPosed=0
SpecialThreatValue=1
VeteranAbilities=STRONGER,FIREPOWER,SIGHT,FASTER
EliteAbilities=SELF_HEAL,STRONGER,FIREPOWER,ROF
Size=15
SizeLimit=2
HoverAttack=yes
;OmniFire=yes ;GEF moved to weapon
AllowedToStartInMultiplayer=no
Crashable=yes
CanPassiveAquire=no ; Won't try to pick up own targets
SpeedType=Hover
MoveSound=BlackOpsMoveLoop
EnterTransportSound=EnterTransport
LeaveTransportSound=ExitTransport
ElitePrimary=BlackHawkCannonE
PreventAttackMove=yes
;Bombable=no
TooBigToFitUnderBridge=true
Trainable=yes
Arts.ini
[ka50s] ; Kamov helicopter
Voxel=yes
DisableVoxelCache=yes ; SJM: this is a major cache hog
DisableShadowCache=yes ; SJM: this too
Remapable=yes
TurretOffset=50
PrimaryFireFLH=175,0,10
ShadowIndex=2 ;order of voxels got changed
Joined: 18 Jun 2005 Location: Dordrecht, the Netherlands
Posted: Wed Apr 15, 2009 3:47 pm Post subject:
It is known that normal planes shouldn't have the ability to selfheal: this keeps them from crashing. The only mentioning of selfhealing in this code is an elite ability, but in the pic the chopper ain't elite, so that can't be it... QUICK_EDIT
Jumpjet logic causing the problem maybe? IIRC using jumpjet logic here makes it invincible. Also, this should be in TS editing, not the media hut. _________________ QUICK_EDIT
*EHRM* its in RA2 as the title says, its just a ts unit in ra2 Notice the "1" in the top left corner, TS has it on the bottom, also the water tiles are different in TS;There much darker.
I'm not trying to flame, just pointing out whats different _________________ QUICK_EDIT
It is known that normal planes shouldn't have the ability to selfheal: this keeps them from crashing. The only mentioning of selfhealing in this code is an elite ability, but in the pic the chopper ain't elite, so that can't be it...
Choopers and Kirovs can have selfhealthing. QUICK_EDIT
*EHRM* its in RA2 as the title says, its just a ts unit in ra2 Notice the "1" in the top left corner, TS has it on the bottom, also the water tiles are different in TS;There much darker.
I'm not trying to flame, just pointing out whats different
Still shouldn't be in media hut though. QUICK_EDIT
not really with just the nighthawk code...it lands, this code hovers and attacks while in the air ( ground and air units ) as for the shadow index I do agree and I am sorry if it does bring confusion.
Also as for the cut and paste comment, this code took me years to work out as this does mak air to air combat work but only for helicopters not planes QUICK_EDIT
your helicopter consists of different sections
the body, the rotor at the back and the rotor on top
0,1,2 are the reference to this sections.
usually you use the body (section 0) for the shadows _________________ just a simple logo by bricks @ raminator, on Flickr QUICK_EDIT
I dont know, I tried your code on the Heli from TS with RA2, and it was shot down and destroyed with no problems. And it's the exact same code the SHAD uses so I dont see why your having problems, unless the mod itself is reading it in a different way, but like I said I really dont know the problem on this one.
Edit: what you have it listed as in your Rules.ini an Aircraft or a Vehicle?should be listed as a vehicle. QUICK_EDIT
thats just the way they are coded from WestWoodStudio's. It has alot to do with the rotor animations, cause they only work if its listed as a vehicle. Why they coded it like that, I have no idea, but thats just how it is.
@lko- nice feedback, I missed that very important step, the JJL Last edited by crevio on Sat Jul 11, 2009 6:45 pm; edited 2 times in total QUICK_EDIT
I think the reason why it did not work as an aircraft is, that the jumpjet logic works only for vehicletypes. But i'm not sure as i haven't modded RA2 that much. _________________ SHP Artist of Twisted Insurrection: Nod buildings
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum