logo   login
right
Home Forums Downloads Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Forum Info
Forum Members: 18,679
Total Threads: 8,804
Posts: 95,885

Administrators:
DeeZire, Redemption

There are currently 11 users online.
Partner Links

Free Credit Repair

Learn the Ticket Broker Secrets
Advertisements

DeeZire Online > Editing Community > Command and Conquer Editing > Generals & Zero Hour Editing » I can't get my artillery to fire over walls/buildings etc

Generals & Zero Hour Editing Discuss any modding related issues to do with Generals and Zero Hour here.

Reply
 
LinkBack Thread Tools
Old 12-19-2004, 02:41 AM   #1 (permalink)
Member
 
Join Date: Aug 2004
Posts: 44
Default 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...
schtoogie is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-19-2004, 07:05 AM   #2 (permalink)
Senior Member
 
Join Date: May 2003
Location: Eindhoven, Netherlands
Posts: 2,278
Send a message via ICQ to CodeCat Send a message via MSN to CodeCat
Default

Try removing the ATTACK_NEEDS_LINE_OF_SIGHT KindOf in the unit's Object code.
CodeCat is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-19-2004, 07:03 PM   #3 (permalink)
Member
 
Join Date: Aug 2004
Posts: 44
Default

AH! Thank you MUCH!
schtoogie is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-19-2004, 07:19 PM   #4 (permalink)
Member
 
Join Date: Aug 2004
Posts: 44
Default

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.
schtoogie is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-19-2004, 07:22 PM   #5 (permalink)
Senior Member
 
Join Date: May 2003
Location: Eindhoven, Netherlands
Posts: 2,278
Send a message via ICQ to CodeCat Send a message via MSN to CodeCat
Default

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.
CodeCat is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-19-2004, 07:28 PM   #6 (permalink)
Member
 
Join Date: Aug 2004
Posts: 44
Default

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.?
schtoogie is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-19-2004, 07:52 PM   #7 (permalink)
Member
 
Join Date: Aug 2004
Posts: 44
Default

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?
schtoogie is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-19-2004, 08:02 PM   #8 (permalink)
Senior Member
 
Join Date: May 2003
Location: Eindhoven, Netherlands
Posts: 2,278
Send a message via ICQ to CodeCat Send a message via MSN to CodeCat
Default

Well vehicles or infantry don't have this behaviour, and structures do. So look at the difference between them - those two KindOfs.
CodeCat is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-19-2004, 08:47 PM   #9 (permalink)
Member
 
Join Date: Aug 2004
Posts: 44
Default

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...
schtoogie is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-19-2004, 08:49 PM   #10 (permalink)
Senior Member
 
Join Date: May 2003
Location: Eindhoven, Netherlands
Posts: 2,278
Send a message via ICQ to CodeCat Send a message via MSN to CodeCat
Default

So with that KindOf it still doesn't shoot over it?
CodeCat is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Deployable Artillery from TS fire87 Red Alert 2 & Yuri's Revenge Editing 13 08-21-2005 09:38 PM
TOWED ARTILLERY Flyby Generals & Zero Hour Editing 4 03-22-2005 01:34 PM
New GLA artillery The_Hunter Generals & Zero Hour Editing 5 12-21-2004 02:39 AM
Artillery doesnt fire correctly oobootsy1 Generals & Zero Hour Editing 3 07-06-2004 12:48 PM
model: Artillery Abdi Generals & Zero Hour Editing 10 05-24-2003 04:22 AM


All times are GMT -4. The time now is 03:16 AM.


Design By: Miner Skinz.com
Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.