Jundiyy
  • Jundiyy
  • 50.25% (Neutral)
  • Captain Topic Starter
8 years ago
Hi all,
So I just posted recently regarding civilian airfields, none in the world builder.
Before I try using renx or anything I want to see if I can do it here.

So I have the China AirField code, everyone can get that from the INI, now I added the below code, this added me a scud missile, perfect, but I want to move it somewhere away from the middle, is it possible?

Draw = W3DModelDraw ModuleTag_02
OkToChangeModelColor = Yes

ProjectileBoneFeedbackEnabledSlots = PRIMARY SECONDARY ; WeaponLaunchBone will be shown/hidden, not just used for firing offset

DefaultConditionState
Model = UVScudLchr
HideSubObject = CHASSIS HOUSECOLOR01
Turret = TURRET
TurretPitch = TURRETEL
ShowSubObject = TURRETUP02
HideSubObject = TURRET TURRETUP01
;WeaponLaunchBone = PRIMARY WeaponA
;WeaponLaunchBone = SECONDARY WeaponA

End


Maybe using something similar to the rally point code?


Behavior = DefaultProductionExitUpdate ModuleTag_13
UnitCreatePoint = X: 0.0 Y:-27.0 Z:0.0
NaturalRallyPoint = X: 57.0 Y:-27.0 Z:0.0;NaturalRallyPointX must always match GeometryMajorRadius! -ML
End
Sponsor
Zatsupachi
8 years ago
You've only placed the model of a SCUD Missile on an airfield, it doesn't have any functionality until you code something for it.

Also, everything in the model is draw from the "center" of the model. What I meant of it is the triordinates 0,0,0 of the model. Hence why the SCUD is drawn in the "center". Adding a second w3dmodeldraw just makes it so that it draws 2 models, and their both drawn from their "centers".
If you displace the position of the model(with a modelling software) relative to the Airfield's "center" you can place it in the correct spot.

I'd rather attach it to a bone. And having a second object to it that is a portable structure.
Basically attach the second part via Avenger Turret/Overlord Attachment.

This means you'll have to use any of the Overlord Vehicle Draws instead of the normal W3DModelDraws:
W3DOverlordTankDraw
W3DOverlordTruckDraw
W3DOverlordAircraftDraw
"It's precision_bomber."
Death Label HAS BEEN RELEASED(go get v0.99):
http://www.moddb.com/mods/death-label/downloads/death-label-ver-099 
Next Episode:
precision_bomber's Zero Hour SCIENCE!
Jundiyy
  • Jundiyy
  • 50.25% (Neutral)
  • Captain Topic Starter
8 years ago
Thanks for your reply, I'm fairly new to modding so I won't understand too much lol, maybe 10-12 days max.
I wasn't planning on making use of it to be honest, my plans were to get an airfield for GLA but I couldn't see any in the civilian section and I didn't want an exact identical one to another faction. So I thought if I can place a Scud or 2 that would help, but you are saying the only way to move the scud is by using another program, we can't code X Y Z?

Is what you are saying the same as adding a Tomahawk Missile? I have managed to do that, it is much easier, Scud Launcher seems a bit more trickier, whilst we are here talking about scuds, I tried to hid the nuke launchers nuke and add a scud missile but I think I went wrong somewhere, the nuke shoots the scuds but still has it's nuke, the scud can be seen just laying flat in the nuke. I don't think I copied the full code of the scud?
I tried playing around with the turret in the engineering but no difference, I'm missing something and I'm sure it's right in my face.
Will send codes in morning.