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

Forum Info
Forum Members: 18,642
Total Threads: 8,744
Posts: 95,513

Administrators:
DeeZire, Redemption

There are currently 36 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 » The laser effect like the prism tank in RA2?

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

Reply
 
LinkBack Thread Tools
Old 04-19-2003, 04:05 AM   #11 (permalink)
Senior Member
 
Join Date: Jan 2003
Location: Bunbury, Western Australia
Posts: 130
Default Post the code!

PLEASE post the code! I stumbled on it once by accident, but didn't write down how it happened, so the breakthrough was lost until you posted this. Need code, waaah!
Sponge is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-19-2003, 08:53 AM   #12 (permalink)
Senior Member
 
Join Date: Dec 2002
Location: England
Posts: 228
Send a message via ICQ to Shadow Send a message via AIM to Shadow Send a message via MSN to Shadow Send a message via Yahoo to Shadow
Default

Search FactionUnit.ini for LaserBeam
you'll find out how
Shadow is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-19-2003, 09:14 AM   #13 (permalink)
Daz
Member
 
Join Date: Dec 2002
Posts: 95
Default

Ah, i believe it is the Paladin laser
Daz is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-19-2003, 10:00 AM   #14 (permalink)
Senior Member
 
Join Date: Feb 2003
Location: You Never Know
Posts: 141
Send a message via MSN to main_concept
Default

hmmmm, but how can u add it as a weapon? from the missile defender's code, it seems that it adds it as a special object from the muzzle01...

this is becoming veeeeeeeeery interesting
main_concept is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-19-2003, 10:07 AM   #15 (permalink)
Senior Member
 
Join Date: Sep 2001
Posts: 313
Send a message via ICQ to mad ivan Send a message via MSN to mad ivan
Default

you can make Tank Lasers.
But can you make Infantry Lasers?
mad ivan is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-19-2003, 10:18 AM   #16 (permalink)
Senior Member
 
Join Date: Feb 2003
Location: You Never Know
Posts: 141
Send a message via MSN to main_concept
Default

yep!i tred it once, but it waz invisible
main_concept is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-19-2003, 11:12 AM   #17 (permalink)
Member
 
Join Date: Feb 2003
Location: --a
Posts: 34
Default Laser

in Weapon.ini, duplicate PaladinPointDefenseLaser and modify it as you wish.

Weapon TestLaserWeapon
PrimaryDamage = 100.0
PrimaryDamageRadius = 5.0
AttackRange = 125.0
DamageType = EXPLOSION
DeathType = LASERED
WeaponSpeed = 999999.0 ; dist/sec
DelayBetweenShots = 100 ; time between shots, msec
ClipSize = 5 ; how many shots in a Clip (0 == infinite)
ClipReloadTime = 20000 ; how long to reload a Clip, msec
LaserName = NewLaserBeam
FireFX = WeaponFX_PaladinPointDefenseLaser
End

LaserName = NewLaserBeam
This is the most significant code. You should make a new Laser object.

Now, Open FactionUnit.ini
Paladin tank uses PointDefenseLaserBeam for its laser object, but search for Object LaserBeam in this example. It's right below PointDefenseLaserBeam.
Duplicate it and change the name.

;------------------------------------------------------------------------------
Object NewLaserBeam
; *** ART Parameters ***
Draw = W3DLaserDraw ModuleTag_01
Texture = EXLaser.tga
NumBeams = 3 ;Number of overlapping cylinders that make the beam. 1 beam will just use inner data.

InnerBeamWidth = 1 ;The total width of beam
InnerColor = R:255 G:255 B:255 A:250 ;The inside color of the laser (hot)

OuterBeamWidth = 2 ;The total width of beam
OuterColor = R:0 G:0 B:255 A:150 ;The outside color of the laser (cool)

;@todo -- add shot ability functionality (instead of instant point A to B)
End

KindOf = IMMOBILE
ClientUpdate = LaserUpdate ModuleTag_02
MuzzleParticleSystem = GenericDifferentialFlare
ParentFireBoneName = Muzzle01
TargetParticleSystem = GenericDifferentialFlare
End

;Used as a weapon, this is essentially a fast pulse laser. Adjusting
;the lifetime values will determine how long it renders. The damage
;is applied immediately, so lifetime doesn't matter.
Behavior = LifetimeUpdate ModuleTag_03
MinLifetime = 95 ; min lifetime in msec
MaxLifetime = 95 ; max lifetime in msec
End

End

ParentFireBoneName = Muzzle01
This is the most important code! Most units have Muzzle01 for its FireWeaponBone so Muzzle01 should work for most units.

if ParentFireBoneName is not a valid one, laser will not be visible.

ssanzing is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-19-2003, 11:23 AM   #18 (permalink)
Senior Member
 
Join Date: Feb 2003
Location: You Never Know
Posts: 141
Send a message via MSN to main_concept
Default

kewl!

is there a way to enlarge the laser? and while i waz looking at the files i noticed the inner color and the outer color...can they be used to alter the laser's color?
main_concept is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-19-2003, 11:26 AM   #19 (permalink)
Member
 
Join Date: Feb 2003
Location: --a
Posts: 34
Default yes

Yup. I changed my laser blue form the red laser of Paladin tank.


InnerBeamWidth = 1 ;The total width of beam
InnerColor = R:255 G:255 B:255 A:250 ;The inside color of the laser (hot)

OuterBeamWidth = 2 ;The total width of beam
OuterColor = R:0 G:0 B:255 A:150 ;The outside color of the laser (cool)


BeamWidth will alter laser thickness.
ssanzing is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-19-2003, 11:32 AM   #20 (permalink)
Senior Member
 
Join Date: Feb 2003
Location: You Never Know
Posts: 141
Send a message via MSN to main_concept
Default

Quote:
BeamWidth will alter laser thickness.
thus enlarging the laser! [/code]
main_concept 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
Laser Effect goblinsleez Generals & Zero Hour Editing 12 03-24-2005 09:03 AM
Prism Tank Laser Weapon [WIP] warlord Generals & Zero Hour Editing 6 07-01-2004 11:57 PM
Pulse Laser Effect NEONecd888 Generals & Zero Hour Editing 22 12-31-2003 12:40 PM
Prizm Laser Effect (Need Help) warlord Generals & Zero Hour Editing 1 10-02-2003 01:39 PM
Prism Tank, wee Zoop Generals & Zero Hour Editing 21 05-20-2003 01:06 PM


All times are GMT -4. The time now is 10:27 AM.


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