darkmatter86
11 years ago
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.
Sponsor
klingondragon
11 years ago
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)
darkmatter86
11 years ago
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 ๐Ÿ˜ž. Can you help me with this?
menard
  • menard
  • 50.25% (Neutral)
  • Major
11 years ago
i can help you in your question number 2 show me the code,is that map.ini or weapon.ini?
klingondragon
11 years ago

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 ๐Ÿ˜ž. Can you help me with this?

Originally Posted by: darkmatter86 



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
darkmatter86
11 years ago
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.
klingondragon
precision_bomber
11 years ago
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)

WeaponSet
 Weapon = PRIMARY w1
 Weapon = SECONDARY w2
 PreferredAgainst = PRIMARY INFANTRY VEHICLES
 PreferredAgainst = SECONDARY AIRCRAFT
End

Death Label:
Reduced back to 3 main factions(and a couple of extras).
Each faction can choose a(or all of them) tech-tree via General's Powers.
Angel Wings: Jets and Anti-Air, Helicopters and Missiles, Hovercraft and Lasers
Red Skulls: Armor Division, Mecha Armada, Drone Swarm
Earth's Saviors: Air Raid, Homeworld Security, Stealth
Gameanater
11 years ago
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.
Any old friends still on here can add me on discord @jcdenton2187. I'm far more likely to respond there.
darkmatter86
11 years ago
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.
klingondragon
11 years ago
find their locomoters and add the keyword cliffs (check col. burton for the word you need)
darkmatter86
11 years ago
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.
Rrtaya_tsamsiyu
11 years ago
    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

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.
one soul at a time
UTD^Force
11 years ago

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?

Originally Posted by: darkmatter86 



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.
A Muslim, ask me anything about Islam if you want
UTD^Force
Moderator and former map reviewer
Big fan of C&C Labs
UTD^Force
11 years ago
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.

A Muslim, ask me anything about Islam if you want
UTD^Force
Moderator and former map reviewer
Big fan of C&C Labs
darkmatter86
11 years ago

- Before anyone asks, yes, I changed the dozers' locomotors so they can move on cliffs.

Originally Posted by: UTD^Force 


Can you show me how?
darkmatter86
11 years ago
Here the Weapon I use, put it in the PDL Update, and it lays waste to all kinds of aircraft even Auroras๐Ÿ˜ :
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
UTD^Force
11 years ago

- Before anyone asks, yes, I changed the dozers' locomotors so they can move on cliffs.

Originally Posted by: darkmatter86 


Can you show me how?

Originally Posted by: UTD^Force 




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.
A Muslim, ask me anything about Islam if you want
UTD^Force
Moderator and former map reviewer
Big fan of C&C Labs
UTD^Force
11 years ago
The dozer's locomotor's name:
AmericaVehicleDozerLocomotor

The locomotor:

Locomotor AmericaVehicleDozerLocomotor
Surfaces = GROUND CLIFF
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


A Muslim, ask me anything about Islam if you want
UTD^Force
Moderator and former map reviewer
Big fan of C&C Labs
darkmatter86
11 years ago

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).

Originally Posted by: UTD^Force 


I changed the patriot battery' geometry like you said but still couldn't build it on the cliff.