Project Perfect Mod Forums
:: Home :: Get Hosted :: PPM FAQ :: Forum FAQ :: Privacy Policy :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in ::


The time now is Thu Apr 18, 2024 7:27 am
All times are UTC + 0
Help with weapon
Moderators: Global Moderators, Red Alert 2 Moderators
Post new topic   Reply to topic Page 1 of 1 [4 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
Aeturnalis
Medic


Joined: 31 Aug 2015
Location: Lansing, MI, USA

PostPosted: Sat Sep 30, 2017 2:36 pm    Post subject:  Help with weapon
Subject description: game confusing gas rocket with chaos drone attack
Reply with quote  Mark this post and the followings unread

I added the Generals Toxin Tractor to Yuri's revenge for Yuri, and gave it a weapon called "PoisonGasRocket."  This was about 2 years ago.  It worked well, I believe I found working code for it online.

Anyway, present day, it's not working correctly.  Now when the Toxin Tractor attacks, it uses the Chaos Drone weapon.  I looked through the code, can't figure out why it's failing, so I was hoping someone here may have some insight for me.

Here's the code I have...

Quote:

[ToxinTractor]
UIName=Name:TOXINT
Name=Toxin Tractor
Image=TOXINT
Prerequisite=YAWEAP
Primary=PoisonGasRocket
Strength=220;200
Category=AFV
Armor=heavy
Turret=yes
IsTilter=yes
;TargetLaser=yes
TooBigToFitUnderBridge=true
TechLevel=2
Sight=8;6
Speed=9;8
CrateGoodie=no
Crusher=yes
Owner=YuriCountry
Cost=700;600
Soylent=700
Points=25
ROT=5
IsSelectableCombatant=yes
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
VoiceSelect=ToxinTrSelect
VoiceMove=ToxinTrMove
VoiceAttack=ToxinTrAttackCommand
VoiceFeedback=
DieSound=GenVehicleDie
MoveSound=FlakTrackMoveStart
CrushSound=TankCrush
Maxdebris=3
Locomotor={4A582741-9839-11d1-B709-00A024DDAFD1}
MovementZone=Destroyer
ThreatPosed=40 ; This value MUST be 0 for all building addons
DamageParticleSystems=SparkSys,SmallGreySSys
DamageSmokeOffset=100, 100, 275
Weight=3.5
VeteranAbilities=STRONGER,FIREPOWER,SIGHT,FASTER
EliteAbilities=SELF_HEAL,STRONGER,FIREPOWER,ROF
Accelerates=false
ZFudgeColumn=8
ZFudgeTunnel=13
Size=3
OpportunityFire=yes
ElitePrimary=PoisonGasRocketE
BuildTimeMultiplier=1.5;Individual control of build time


Quote:

[PoisonGasRocket]
Damage=25
ROF=150
Range=10
Burst=2
Projectile=PoisonGasRocketP
Speed=10
Warhead=PoisonGasRocketWH
Report=GuardianGIDeployedAttack
MinimumRange=3
Supress=yes

[PoisonGasRocketE]
Damage=33
ROF=150
Range=10
Burst=2
Projectile=PoisonGasRocketP
Speed=10
Warhead=PoisonGasRocketWH
Report=GuardianGIDeployedAttack
MinimumRange=3
Supress=yes


Quote:

[PoisonGasRocketWH]
Wall=yes
Wood=yes
CellSpread=.75
PercentAtMax=1
Verses=100%,100%,100%,100%,100%,100%,100%,100%,75%,100%,100%
Conventional=yes
InfDeath=8
AnimList=XGRYSML1,XGRYSML2
ProneDamage=300%
Particle=GasCloudSys2

[GasCloudSys2]
HoldsWhat=VirusCloud3
BehavesLike=Gas


[VirusCloud3]
Image=TXGASG
MaxDC=30
MaxEC=400
Damage=10
Warhead=VirusGas
StartFrame=0
EndStateAI=20
Translucency=50
WindEffect=0
BehavesLike=Gas
StateAIAdvance=4
NextParticle=VirusCloudD3
Deacc=1
Velocity=10.0


[VirusCloudD3]
Image=TXGASG
MaxDC=60
MaxEC=50
Damage=5
Warhead=VirusGas
StartFrame=0
EndStateAI=20
Translucency=50
WindEffect=0
BehavesLike=Gas
StateAIAdvance=4
DeleteOnStateLimit=yes
Deacc=1
Velocity=10.0


Quote:

[PoisonGasRocketP]
Arm=2
Shadow=no
Image=120mm
SubjectToCliffs=yes
SubjectToElevation=yes
SubjectToWalls=yes
Arcing=true
Inaccurate=yes
VeryHigh=yes


anyway, any help is greatly appreciated

Back to top
View user's profile Send private message
cxtian39
Commander


Joined: 11 Feb 2016

PostPosted: Sat Sep 30, 2017 6:58 pm    Post subject: Reply with quote  Mark this post and the followings unread

Could be that you have another [ToxinTractor] section that has chaos drone weapon
easily mess up with ares include

_________________

Back to top
View user's profile Send private message Skype Account
Aeturnalis
Medic


Joined: 31 Aug 2015
Location: Lansing, MI, USA

PostPosted: Sat Sep 30, 2017 7:17 pm    Post subject: Reply with quote  Mark this post and the followings unread

Not that I see... it's definitely something with the weapon itself... i changed the ToxinTractor weapon to 105mm (Grizzly gun) and it fired the grizzly gun.  So, I just renamed the PoisonGasRocket to GasGrenade and it worked normally... I think it's reading the wrong weapon entry, not at all sure why... perhaps Ares?  It didn't do this before.  

Anyway, it's not a pressing issue anymore, but I do appreciate your input.  Still hope to figure out why it did this in case it does it again in the future.

Back to top
View user's profile Send private message
TAK02
General


Joined: 28 Jun 2015
Location: It was Damascus.

PostPosted: Sun Oct 01, 2017 5:26 am    Post subject: Reply with quote  Mark this post and the followings unread

Rechk for another entry with PosionGasRocket. This kind of mess-up happens when there are two sections with the same name, but different values.
And I'm not sure, but the ordering of such sections might also be considered by the game when deiciding which one's flags and values to use. Logically, the last would override the first, but I'm not sure.

_________________
One and only developer of the Command & Conquer Dune "C&C D" mod.
m7 wrote:
I tend to release things I create so that assets are never lost to hard drive problems, accidental deletion, or me having to pretend to care about rippers taking things from my project when it is done. #Tongue

Back to top
View user's profile Send private message Send e-mail Visit poster's website ModDB Profile ID YouTube User URL Twitter Channel URL Skype Account
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [4 Posts] Mark the topic unread ::  View previous topic :: View next topic
 
Share on TwitterShare on FacebookShare on Google+Share on DiggShare on RedditShare on PInterestShare on Del.icio.usShare on Stumble Upon
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


Powered by phpBB © phpBB Group

[ Time: 3.2273s ][ Queries: 11 (3.0888s) ][ Debug on ]