 |
Forum Info
|
 |
Forum Members: 18,679
Total Threads: 8,804
Posts: 95,885
Administrators:
DeeZire, Redemption
There are currently 11 users online.
|
 |
Partner Links
|
 |
 |
Advertisements
|
 |
|
| Generals & Zero Hour Editing Discuss any modding related issues to do with Generals and Zero Hour here. |
12-19-2004, 02:41 AM
|
#1 (permalink)
|
|
Member
Join Date: Aug 2004
Posts: 44
|
I can't get my artillery to fire over walls/buildings etc
Here's my code:
Weapon FieldGun150mm
PrimaryDamage = 200.0
PrimaryDamageRadius = 5.0
ScatterRadiusVsInfantry = 10.0 ;When this weapon is used against infantry, it can randomly miss by as much as this distance.
AttackRange = 425.0
MinimumAttackRange = 25.0
MinTargetPitch = -15 ; we may not target anything outside of this pitch range
MaxTargetPitch = 15 ; ditto
DamageType = EXPLOSION
DeathType = NORMAL
WeaponSpeed = 400 ; dist/sec
WeaponRecoil = 5 ; angle to deflect the model when firing
ProjectileObject = ScorpionTankShell
FireFX = WeaponFX_GenericTankGunNoTracerSmall
ProjectileDetonationFX = FX_FireBaseHowitzerExplosion
; ProjectileDetonationFX = WeaponFX_GenericTankShellDetonation
FireSound = StrategyCenter_ArtilleryRound
RadiusDamageAffects = ALLIES ENEMIES NEUTRALS
DelayBetweenShots = 4000 ; time between shots, msec
ClipSize = 0 ; how many shots in a Clip (0 == infinite)
ClipReloadTime = 0 ; how long to reload a Clip, msec
; ProjectileCollidesWith = STRUCTURES WALLS
End
Now, what am I missing to get it to fire over buildings? I know that the inferno cannon can fire over buildings, but...
|
|
|
12-19-2004, 07:05 AM
|
#2 (permalink)
|
|
Senior Member
Join Date: May 2003
Location: Eindhoven, Netherlands
Posts: 2,278
|
Try removing the ATTACK_NEEDS_LINE_OF_SIGHT KindOf in the unit's Object code. 
|
|
|
12-19-2004, 07:03 PM
|
#3 (permalink)
|
|
Member
Join Date: Aug 2004
Posts: 44
|
AH! Thank you MUCH! 
|
|
|
12-19-2004, 07:19 PM
|
#4 (permalink)
|
|
Member
Join Date: Aug 2004
Posts: 44
|
Oh, on a related matter:
I want to build a wall in front of my field guns to protect them, but it doesnt do much on account of enemy tanks just go around. Can I modify the wall so that things with the need line-of-sight KindOf don't need to move around the wall to shoot, but when they shoot at things on the other side of the wall their shells hit the wall? This isn't a super description, so think RA2 wall. Can I make something like that? That way, the enemy has to destroy the wall (or move around it, if they're that smart... hehe) to get at my field guns.
|
|
|
12-19-2004, 07:22 PM
|
#5 (permalink)
|
|
Senior Member
Join Date: May 2003
Location: Eindhoven, Netherlands
Posts: 2,278
|
I think the problem is that the tank sees the wall as an obstruction because it's a building, not a unit. The wall is a STRUCTURE KindOf, so I think that's what causes this behaviour. Either that or IMMOBILE. Try removing one of them (or both) and see if that works.
|
|
|
12-19-2004, 07:28 PM
|
#6 (permalink)
|
|
Member
Join Date: Aug 2004
Posts: 44
|
All right! Thanks a TON!
One more thing, heh... How can I modify the amount of generals points given to a player at the beginning of the game, with advancing ranks, etc.?
|
|
|
12-19-2004, 07:52 PM
|
#7 (permalink)
|
|
Member
Join Date: Aug 2004
Posts: 44
|
Nevermind, I found the answer to the generals points (rank.ini - how stupid of me!)... but I tested the wall thing out, and units simply go through it.
I'll try putting "immobile" back in there, and then I'll try "structure"... I'm not sure either of those will give me the result I want, though.
Any thoughts?
|
|
|
12-19-2004, 08:02 PM
|
#8 (permalink)
|
|
Senior Member
Join Date: May 2003
Location: Eindhoven, Netherlands
Posts: 2,278
|
Well vehicles or infantry don't have this behaviour, and structures do. So look at the difference between them - those two KindOfs. 
|
|
|
12-19-2004, 08:47 PM
|
#9 (permalink)
|
|
Member
Join Date: Aug 2004
Posts: 44
|
Vehicle:
PRELOAD SELECTABLE CAN_ATTACK CAN_CAST_REFLECTIONS VEHICLE SCORE
Wall:
PRELOAD SELECTABLE STICK_TO_TERRAIN_SLOPE SCORE FS_BASE_DEFENSE IMMUNE_TO_CAPTURE
Now, what am I looking for?
Remember, I want other vehicles to shoot at things on the other side of the wall, but their shells hit the wall until it is destroyed...
|
|
|
12-19-2004, 08:49 PM
|
#10 (permalink)
|
|
Senior Member
Join Date: May 2003
Location: Eindhoven, Netherlands
Posts: 2,278
|
So with that KindOf it still doesn't shoot over it?
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -4. The time now is 03:16 AM.
|