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

Forum Info
Forum Members: 18,575
Total Threads: 8,656
Posts: 94,426

Administrators:
DeeZire, Redemption

There are currently 55 users online.
Partner Links

Free Credit Repair

Learn the Ticket Broker Secrets
Advertisements


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

Reply
 
LinkBack Thread Tools
Old 01-06-2005, 01:50 PM   #1 (permalink)
Member
 
Join Date: Dec 2004
Location: SWEDEN
Posts: 48
Default Detonation from lasers

Hello

Does anyone have any idea of how to make a laser, or stream, to fire a weapon on impact. I want a laserbeam to fire for a short while and then get a delayed detonation from the impactpoint of the laser. Something like the "particlebeam" worked in the first Command & Conquer thus not a superweapon in this case. I have tried using a projectile that detonates with a FireWeaponWhenDead module but found no way to get the laserbeameffect in there. My closest call was to put the laserbeam in one weaponslot and a projectilelauncher (with a FireWeaponWhenDead module in order to get the detonation) in the other but the downside with that method is that sometimes it will just use the beam and sometimes only the projectilelauncher which give quite off results. :/

Easiest way i can think of is to get a laserbeam to fire a weapon somehow but i have no idea how to get that to work since i have only found projectiles to actually fire a weapon. The thing is really that the laserbeam is merely a visual effect and need not necessarily damage anything since the detonation is meant to deal with that part.

If someone could help i'd be highly greatful.
copperhead is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-06-2005, 02:54 PM   #2 (permalink)
Senior Member
 
Join Date: Jul 2003
Location: Germany
Posts: 303
Default

I am not sure whether this really works but it might be worth a try

Create a missile weapon with invisible projectile and give it a nice exhaust simulating the laser effect. Make the missile extremely fast which results in almost instant impact and a nice laser trail. Then you give that missile weapon a minimum damage of 0.1 but a DetonationOCL which creates a dummy object that kills itself in say 1000 msec, firing the real weapon. Don't forget to give the laser effect particlesystem a really long lifetime so that it's still present even when the missile is already gone.
2312222 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-06-2005, 03:33 PM   #3 (permalink)
Member
 
Join Date: Dec 2004
Location: SWEDEN
Posts: 48
Default

Interessting idea. I have tried this already but i overlooked the detail of giving the trailparticles a long lifetime. I will try this too and get back here with the results.

Thanks for the help!
copperhead is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-06-2005, 03:40 PM   #4 (permalink)
Senior Member
 
Join Date: Aug 2003
Location: the Netherlands
Posts: 228
Send a message via ICQ to DeathAngel Send a message via MSN to DeathAngel
Default

add this to the weapon in the weapon.ini:

FireOCL = OCL_yourthing

then make an OCL of an explosion.
pretty simple
DeathAngel is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-07-2005, 06:11 AM   #5 (permalink)
Member
 
Join Date: Dec 2004
Location: SWEDEN
Posts: 48
Default

A FireOCL in the laserbeam-weapon you mean? That doesn't work as far as i know because everytime and way i've tried that very method the OCL is created underneath my firing object and not at the target of the fire. This way i only blow up my own units. I guess this comes from that lasers HAS to be KindOf=IMMOBILE which makes OCL-creation occur on the source spot and not the target spot. :/
copperhead is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-07-2005, 10:26 AM   #6 (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

AFAIK it can't be done without using a projectile. But as already has been said, you can make a projectile trail that looks like a laser.
CodeCat is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-07-2005, 01:57 PM   #7 (permalink)
Member
 
Join Date: Dec 2004
Location: SWEDEN
Posts: 48
Default

Then please tell me how because i've been tweeking this trail now until my head hurt and my computer getting borded with me without getting the result of a proper looking laser. I get all kinds of nice and fun looking trails otherwise but none that are any convincing being a laserbeam.

So, if anyone succeeded with this, please give me the particletrail-code for a lasertrail.
copperhead is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-07-2005, 05:42 PM   #8 (permalink)
Senior Member
 
Join Date: May 2004
Posts: 144
Default

Take a look at how the bunker buster weapon is done.
Thinimus is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-07-2005, 07:24 PM   #9 (permalink)
Senior Member
 
Join Date: Aug 2003
Location: the Netherlands
Posts: 228
Send a message via ICQ to DeathAngel Send a message via MSN to DeathAngel
Default

hhmm, MAYBE .... but that probably wont work on a laser weapon
DeathAngel is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-10-2005, 06:39 AM   #10 (permalink)
Junior Member
 
Join Date: Dec 2004
Posts: 3
Send a message via MSN to olegkvasha
Default

lasers are a royal pain to work with. I have recently completed a Laser Mammoth Tank for the american laser general. It took a while to get both turrets to fire a laser. By accident at one point i managed to make it so the laser fired at a target but didnt do any damamge for the 1st few seconds then it started to damage the target. I will try and see if i saved the INI for it.
olegkvasha 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
big lasers in ra2[yr] Ux2 Red Alert 2 & Yuri's Revenge Editing 6 05-02-2006 10:17 AM
Lasers not showwing, need help XtremeNL Generals & Zero Hour Editing 1 04-15-2006 10:26 AM
Please Help with coding lasers (please please) Azad0r Generals & Zero Hour Editing 4 02-19-2004 09:13 AM
ZH Lasers to Generals - HOW? aladin Generals & Zero Hour Editing 7 11-03-2003 06:16 PM
Laser Detonation FX ? LtZack Generals & Zero Hour Editing 16 06-22-2003 11:01 PM


All times are GMT -4. The time now is 10:37 PM.


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