Posted by: darkmatter86 - Thursday, November 6, 2014 1:59:37 AM
Hi guys, i'm new here and i have a couple of questions:
1. I want to construct buildings on the top of the mountains/ side of the cliffs (like the EMP patriots at the base of the SW General in her challenge). Could someone tell me how to do it?
2. I give the battle drones the EMP patriot anti air weapon but they still fire at ground units even with AntiGround = No. I don't know why, can you explain this to me?
Thanks in advance.
Posted by: klingondragon - Thursday, November 6, 2014 2:39:04 AM
i can help with Q1 but not Q2
1. you cant. You can only do it in worldbuilder or if you have some sort of unit with selfdestruct that when it dies it spawns the building you want (kind of like mcv in other C&C games)
Posted by: darkmatter86 - Thursday, November 6, 2014 4:02:59 AM
Thanks.
I have another question: i want to create a weapon to destroy the Auroras on their bombing run. So i try the SW EMP detonationFX but it's so slow and the aoe is small [sad]. Can you help me with this?
Posted by: menard - Thursday, November 6, 2014 4:41:07 AM
i can help you in your question number 2 show me the code,is that map.ini or weapon.ini?
Posted by: klingondragon - Thursday, November 6, 2014 9:12:19 AM
[quote=darkmatter86;134512]Thanks.
I have another question: i want to create a weapon to destroy the Auroras on their bombing run. So i try the SW EMP detonationFX but it's so slow and the aoe is small [sad]. Can you help me with this?[/quote]
the reason they dont work is that the missiles are too slow
post your weapon code and we can tell you how to fix it
Posted by: darkmatter86 - Thursday, November 6, 2014 11:59:04 AM
Weapon SupW_PatriotMissileWeaponAir1
PrimaryDamage = 10.0
PrimaryDamageRadius = 50.0
ScatterRadiusVsInfantry = 0.0 ;When this weapon is used against infantry, it can randomly miss by as much as this distance.
AttackRange = 400.0
DamageType = EXPLOSION
DeathType = EXPLODED
WeaponSpeed = 999999 ; didn't help much
ProjectileObject = PatriotMissileEMP
ProjectileExhaust = MissileExhaust
FireFX = FX_BuggyMissileIgnition
FireSound = PatriotBatteryWeapon
RadiusDamageAffects = ALLIES ENEMIES NEUTRALS
DelayBetweenShots = 100 ; time between shots, msec
ClipSize = 4 ; how many shots in a Clip (0 == infinite)
ClipReloadTime = 1000 ; how long to reload a Clip, msec
AutoReloadsClip = Yes
AntiAirborneVehicle = Yes
AntiAirborneInfantry = Yes
AntiGround = No ; don't know why it still fires at ground units
AntiBallisticMissile = Yes
ProjectileDetonationFX = WeaponFX_RocketBuggyMissileDetonation
ProjectileDetonationOCL = SupW_OCL_PatriotEMPEffectSpheroid
ProjectileCollidesWith = STRUCTURES
MissileCallsOnDie = Yes
End
I just want a pure AA weapon that with one/two hits can down Auroras but things don't turn out as expected.
Posted by: klingondragon - Thursday, November 6, 2014 12:01:18 PM
I've no clue
Posted by: precision_bomber - Thursday, November 6, 2014 2:43:41 PM
Changing projectile speed doesn't help because missiles use locomotors for speed. Try making the missile's locomotor maximum speed and acceleration higher than Supersonic locomotor.
I think making the weapon into a instant-hit bullet/laser would damage an Aurora in Supersonic.(citation needed)
You can indicate on the unit you're putting the weapon into what weapons it uses against units.
(citation needed)
[code=cpp]
WeaponSet
Weapon = PRIMARY w1
Weapon = SECONDARY w2
PreferredAgainst = PRIMARY INFANTRY VEHICLES
PreferredAgainst = SECONDARY AIRCRAFT
End
[/code]
Posted by: Gameanater - Thursday, November 6, 2014 6:38:53 PM
For buildings on mountains:
Only possible to place them in WB or do something like Klingon described, which would use OCL's (Object Creation Lists). It's hardcoded (I think.)
Just a tip, if you can have your unit deploy into a structure and the structure deploy back into the unit, you could end up with being able to repeatedly spam the deploying command over and over to keep the thing from ever being destroyed.
For the Aurora Bomber dying when I shoots its weapon:
Either try making another EMP "steroid" OCL that's big enough to hit the Bomber when it dilivers its payload, or see if you can try something similar to a Terrorist and look at his weapon for anything that might help.
Posted by: darkmatter86 - Friday, November 7, 2014 2:11:59 AM
I found this tutorial on the internet earlier:
"AllowedHeightVariationForBuilding = 10.0 <-- how "flat" the terrain has to be to be buildable. The higher the number is the more variation. so if it was 9999999 then you could build on the side of a cliff. NOTE you'll need to edit the dozers or workers locomotor so he can walk up cliffs otherwise you won't be able to build on them."
It's in the Gamedata.ini but i don't know this method will work or not because i can't figure out how to make the dozers move up and down cliffs.
Posted by: klingondragon - Friday, November 7, 2014 2:59:13 AM
find their locomoters and add the keyword cliffs (check col. burton for the word you need)
Posted by: darkmatter86 - Friday, November 7, 2014 4:02:14 AM
I tried to add CLIFFS (like the combat cycle/ Col. Burton), the cursor changed to movable when pointed at the cliffs but the dozer still couldn't move up like the cycle/ Burton.
Posted by: Rrtaya_tsamsiyu - Friday, November 7, 2014 5:02:51 AM
[code] SneakyOffsetWhenAttacking = -20.0 ; this is how far behind us people aim when we are in attack mode
AttackLocomotorType = SET_SUPERSONIC
AttackLocomotorPersistTime = 100 ; we start slowing down almost immediately
AttackersMissPersistTime = 2000 ; but remain untargetable fer a bit longer
ReturnForAmmoLocomotorType = SET_SLUGGISH[/code]
You can't hit the aurora because it's programmed to where it can't be hit.
Remove this and the extra locomoter entries and things should be able to hit it.
Posted by: UTD^Force - Friday, November 7, 2014 10:38:02 AM
[quote=darkmatter86;134509]Hi guys, i'm new here and i have a couple of questions:
1. I want to construct buildings on the top of the mountains/ side of the cliffs (like the EMP patriots at the base of the SW General in her challenge). Could someone tell me how to do it?
[/quote]
I think I have an idea on how to make this happen. Without WorldBuilder.
I'll try and give the result in a few hours.
Posted by: UTD^Force - Friday, November 7, 2014 12:19:06 PM
I've just tried to make it, and I did it. But, it looks very odd and you can't build on the top of a mountain but on the side of a cliff.
By changing the building's geometry to 0.1 (Major & Minor Radius).
- Before anyone asks, yes, I changed the dozers' locomotors so they can move on cliffs.
Posted by: darkmatter86 - Saturday, November 8, 2014 12:17:43 AM
[quote=UTD^Force;134543]- Before anyone asks, yes, I changed the dozers' locomotors so they can move on cliffs.
[/quote]
Can you show me how?
Posted by: darkmatter86 - Saturday, November 8, 2014 12:23:16 AM
Here the Weapon I use, put it in the PDL Update, and it lays waste to all kinds of aircraft even Auroras[grin] :
Weapon Shield
PrimaryDamage = 999.0
PrimaryDamageRadius = 50.0
AttackRange = 200.0
DamageType = LASER
DeathType = LASERED
WeaponSpeed = 999999.0
RadiusDamageAffects = ENEMIES NEUTRALS
DelayBetweenShots = 0
ClipSize = 0
ClipReloadTime = 0
AcceptableAimDelta = 360
AntiSmallMissile = Yes
AntiProjectile = Yes
AntiBallisticMissile = Yes
AntiAirborneVehicle = Yes
AntiAirborneInfantry = No
LaserName = AvengerPointDefenseLaserBeam
LaserBoneName = LazerSpot01
FireFX = WeaponFX_PaladinPointDefenseLaser
ShockWaveAmount = 250.0 ; represents the shockwave amount. The larger the amount, the greater and more dramatic the shockwave effect
ShockWaveRadius = 200.0 ;100 ; should be no more than the primary/secondary damage radius, whichever is larger.
ShockWaveTaperOff = 0.33 ; 0.33 means at the shockwave edge, the shockwave amount is 33%.
End
Posted by: UTD^Force - Saturday, November 8, 2014 2:34:48 AM
[quote=darkmatter86;134548][quote=UTD^Force;134543]- Before anyone asks, yes, I changed the dozers' locomotors so they can move on cliffs.
[/quote]
Can you show me how?
[/quote]
Yes, go to AmericaVehicle.ini
Search for the dozer, find its locomotor, copy the name of its locomotor.
Then go to Locomotor.ini and search for the locomotor of the dozer, on "SurfacesAllowed = GROUND" add the word CLIFF after a space from the word GROUND.
I'll post the code in a few minutes.
Posted by: UTD^Force - Saturday, November 8, 2014 2:44:57 AM
The dozer's locomotor's name:
[code=jscript]AmericaVehicleDozerLocomotor[/code]
The locomotor:
[quote]Locomotor AmericaVehicleDozerLocomotor
Surfaces = GROUND [h]CLIFF[/h]
Speed = 30 ; in dist/sec
SpeedDamaged = 25 ; in dist/sec
TurnRate = 90 ; in degrees/sec
TurnRateDamaged = 60 ; in degrees/sec
Acceleration = 30 ; in dist/(sec^2)
AccelerationDamaged = 8 ; in dist/(sec^2)
Braking = 50 ; in dist/(sec^2)
MinTurnSpeed = 25 ; in dist/sec
ZAxisBehavior = NO_Z_MOTIVE_FORCE
Appearance = FOUR_WHEELS
TurnPivotOffset = -0.5 ; where to pivot when turning (-1.0 = rear, 0.0 = center, 1.0 = front)
AccelerationPitchLimit = 5 ; Angle limit how far chassis will lift or roll from acceleration.
DecelerationPitchLimit = 5 ; Angle limit how far chassis will dip from deceleration.
PitchStiffness = 0.05 ; stiffness of the "springs" in the suspension forward & back.
RollStiffness = 0.025 ; stiffness of the "springs" in the suspension side to side.
PitchDamping = 0.8 ; How fast it damps. 0=perfect spring, bounces forever. 1=glued to terrain.
RollDamping = 0.3 ; How fast it damps. 0=perfect spring, bounces forever. 1=glued to terrain.
ForwardAccelerationPitchFactor = 0.5 ; How much acceleration will cause the front to lift, or dip for stops.
LateralAccelerationRollFactor = 0.33 ; How much cornering will cause the chassis to roll.
HasSuspension = Yes ; Calculate 4 wheel independent suspension info.
CanMoveBackwards = Yes ; Can move backwards.
MaximumWheelExtension = -2.3 ; Maximum distance the wheels will drop on the model.
MaximumWheelCompression = 1.4 ; Maximum distance the wheel will move up into the chassis.
FrontWheelTurnAngle = 30
; How many degrees the front wheels can turn.
End[/quote]
Posted by: darkmatter86 - Saturday, November 8, 2014 11:30:18 AM
[quote=UTD^Force;134543]I've just tried to make it, and I did it. But, it looks very odd and you can't build on the top of a mountain but on the side of a cliff.
By changing the building's geometry to 0.1 (Major & Minor Radius).[/quote]
I changed the patriot battery' geometry like you said but still couldn't build it on the cliff.
Posted by: UTD^Force - Saturday, November 8, 2014 11:37:22 AM
I could...
It's not gonna be entirely on the cliff, only a half of it...