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

Forum Info
Forum Members: 18,581
Total Threads: 8,667
Posts: 94,503

Administrators:
DeeZire, Redemption

There are currently 50 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 » Getting a structure to constantly shoot a weapon

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

Reply
 
LinkBack Thread Tools
Old 02-04-2005, 12:27 PM   #1 (permalink)
Senior Member
 
Join Date: Mar 2003
Location: Rep. of Ireland
Posts: 373
Default Getting a structure to constantly shoot a weapon

...only when it is damaged, is impossible.

Either 1. I can make it shoot all the time, or 2. I can make it shoot when its 3/4 of its energy or less.

And frankly, both options are useless as I need it to shoot as soon as its damaged only by 1 energy and then stop when its full.

Reason why I need this, is because I am making a repair button that charges you as it repairs, I got that part done however it constantly charges you after you have clicked it once even when the building is fixed, worse still is after the first repair, no matter what you have no choice whether it should repair or not after that.

I worked around this, however, due to EA's baffling inflexible code I can only make it repair and then stop at 75% of the energy (using the FireWeaponWhenDamaged module).

The idea is, and bare with me now, is that the repair button shoots a weapon once on the structure which creates a special repairobject in its position (invisible) this object deletes itself in 101 ms, however, a weapon shooting from the building when its damaged destroys the object in 100ms to activate the repairobjects death OCL which fires a repair weapon, creates a negative cash crate and another repairobject only to repeat until the structure is repaired.

I am working out how to disable the repair through pressing the button a second time, however I cannot fixed the problem of not being able to get the structure to fire as soon as it is damaged and not just when its at 75% of its health.

Oh and just to clarify, I could change the percentage at which a unit is considered 'Damaged' however that would mess with unit and building damage art.
Waraddict is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-07-2005, 02:10 PM   #2 (permalink)
Senior Member
 
Join Date: Jun 2004
Location: Earth-ish
Posts: 197
Default

Very good Idea... although it could work.
I am sure you are having it change the commndset so that you get a new button that pops out something that will kill only the repair object right?
If not you could try that. But as for (if I read you correctly) you want it to do that on it's only through coding... as far as I know that mght be impossible... sorry.
Cedar is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-07-2005, 02:16 PM   #3 (permalink)
Senior Member
 
Join Date: Mar 2003
Location: Rep. of Ireland
Posts: 373
Default

yep, Im using a weapon button, great thing is, with a little bit of brains I can rig it to disable the repairing by a second click, no second commandset needed.

Things may not be as bad as they seem, given that the original C&C only had 2 damage stages per structure, above 50% and below, we may decide to set damaged to 99% and reallydamaged to 50%, the 99% of course being exploited by the repair code while the 50% determining when the model graphics change to damaged.
Waraddict is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-14-2005, 03:11 PM   #4 (permalink)
Senior Member
 
Join Date: Jun 2004
Location: Earth-ish
Posts: 197
Default

But would that remove your problemo??
But i just thought of an idea!!
Have it so that it fires the repair automaticly through special powers!
What I mean is time each structure and give it it's own specialpower timing how long it takes for the object to heal itself then have the specialpower kill the healing object!!
Presto!! problem fixed
Cedar is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-14-2005, 03:41 PM   #5 (permalink)
Senior Member
 
Join Date: Mar 2003
Location: Rep. of Ireland
Posts: 373
Default

not really, first of all the time it takes to repair depends on the damage, second you would have to get the specialpower to time from the right point, can't see how.
Waraddict is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-22-2005, 02:23 PM   #6 (permalink)
Senior Member
 
Join Date: Jun 2004
Location: Earth-ish
Posts: 197
Default

true... well i'm stumped, if I think of something I'll post
Cedar 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
Can you let a missile shoot? Bart Generals & Zero Hour Editing 28 07-25-2004 06:30 AM
Making a unit shoot sideway. Code question juanmanuelsanchez Generals & Zero Hour Editing 20 07-16-2004 11:25 PM
how to make weapon give a weapon bonus to units around it Vger Generals & Zero Hour Editing 6 06-08-2004 04:19 AM
help changing effects of a weapon when another weapon fires Vger Generals & Zero Hour Editing 0 12-25-2003 11:50 PM
shoot flame further and turning turrent for marauder andigo99 Generals & Zero Hour Editing 6 11-30-2003 05:55 PM


All times are GMT -4. The time now is 07:15 AM.


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