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

Forum Info
Forum Members: 18,643
Total Threads: 8,744
Posts: 95,520

Administrators:
DeeZire, Redemption

There are currently 19 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 11-08-2003, 09:44 PM   #1 (permalink)
Senior Member
 
Join Date: Dec 2002
Posts: 1,031
Send a message via ICQ to Phoib Send a message via MSN to Phoib
Default Have a cloaking Field in ZH

I'm trying to get a cloacking field (Like the Cloak Generator from TS) in ZH. The GPS Scrambler object from System.ini contains the following usefull lines:
Code:
Behavior = GrantStealthBehavior ModuleTag_02
    StartRadius               = 20.0
    FinalRadius               = 100.0 ;this needs to sync with the radiuscursorradius in SpecialPower SuperweaponGPSScrambler 
    RadiusGrowRate            = 10.0
    RadiusParticleSystemName  = ParticleUplinkCannon_LaserBaseReadyToFire
    KindOf                    = VEHICLE INFANTRY STRUCTURE
  End
BUT the vehicles that enter it stay cloaked, and never uncloak.

Anyone have any ideas against this, or other ideas how to achieve the same effect, other then an upgrade?
Phoib is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-08-2003, 10:01 PM   #2 (permalink)
Senior Member
 
Join Date: Aug 2003
Posts: 337
Default

Don't units that are inside the GPS scrambler radius that are cloaked and then attack uncloack?

I don't see the problem if they uncloack like they should ( i think they just uncloack when attacking)
The_Blind_One is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-08-2003, 10:21 PM   #3 (permalink)
Senior Member
 
Join Date: Dec 2002
Posts: 1,031
Send a message via ICQ to Phoib Send a message via MSN to Phoib
Default

Yeah, but how long does the effect stay active?

Never noticed it though, thanks anyway.
Phoib is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-08-2003, 11:37 PM   #4 (permalink)
Senior Member
 
Join Date: Dec 2002
Location: New Zealand
Posts: 148
Send a message via ICQ to Sleipnir
Default

Code:
Behavior = ActiveShroudUpgrade ModuleTag_nn 
TriggeredBy = 
NewShroudRange = 
FXListUpgrade = 
End
Try this.... just have the cloak generator grant the upgrade that triggers it when built.
Sleipnir is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-09-2003, 02:38 AM   #5 (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

that would make Shroud, not invisibility like the GPS Scrambler
mad ivan is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-09-2003, 03:40 AM   #6 (permalink)
Senior Member
 
Join Date: Dec 2002
Location: New Zealand
Posts: 148
Send a message via ICQ to Sleipnir
Default

Yeah, but it's probably not possible to get a nicely working cloaking field - shroud is almost as good, and can be easily done.
Sleipnir is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-09-2003, 06:51 AM   #7 (permalink)
Senior Member
 
Join Date: Dec 2002
Posts: 1,031
Send a message via ICQ to Phoib Send a message via MSN to Phoib
Default

I tried it before in Generals, didn't work. Lets try it in ZH...

[edit]Doesn't do anything. Chinese vehicle, upgraded by radarupgrade, and nothing happens. :/ The attached particle won't show and I can just see the enemy one.
Phoib is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-09-2003, 09:55 AM   #8 (permalink)
Senior Member
 
Join Date: Aug 2003
Posts: 337
Default

Phoib regarding your question how long it lasts.

It last as long as the object that is created when activating GPS scramble.

Its like a mobile spydrone above it but it lives only a few moments but this spydrone (GPS) cloakes the units and dies after a couple of moments.

Your best bet phoib is to make it a weapon that spawns this object that creates the cloak field.

Look at the microwave tank for a CLOAK tank hehe

I think that should work
The_Blind_One is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-10-2003, 01:53 AM   #9 (permalink)
Senior Member
 
Join Date: Dec 2002
Location: Nod base
Posts: 172
Default

some research on the making of stealth generator.

first,add these codes:

Object stealthgenobject
VisionRange = 0.0
EditorSorting = SYSTEM
Draw = W3DModelDraw ModuleTag_NOTREALLYADRAW
DefaultConditionState
Model = None
End
End
KindOf = NO_COLLIDE IMMOBILE UNATTACKABLE
Body = ImmortalBody ModuleTag_01
MaxHealth = 1
InitialHealth = 1
End
Behavior = GrantStealthBehavior ModuleTag_02
StartRadius = 200.0
FinalRadius = 200.0
RadiusGrowRate = 100.0
KindOf = VEHICLE INFANTRY
End
End

then copy any building's codes,and add:

Object stealthgenerator

......

Behavior = FireWeaponUpdate ModuleTag_xx
Weapon = stealthgenWeapon
End

......

End

and in Weapon.ini:

Weapon stealthgenWeapon
PrimaryDamage = 0
PrimaryDamageRadius = 0.0
AttackRange = 1.0
DamageType = ARMOR_PIERCING
DeathType = NORMAL
WeaponSpeed = 99999
ProjectileObject = stealthgenobject
RadiusDamageAffects = ALLIES ENEMIES NEUTRALS
DelayBetweenShots = 250
ClipSize = 0
ClipReloadTime = 0
End

then,add these codes to all units that not stealth but can be stealthed by stealth generator:

Behavior = StealthUpdate ModuleTag_xx
StealthDelay = 999999999;make it stealth again very slowly
StealthForbiddenConditions = FIRING_PRIMARY TAKING_DAMAGE MOVING
FriendlyOpacityMin = 50.0%
FriendlyOpacityMax = 100.0%
InnateStealth = No
OrderIdleEnemiesToAttackMeUponReveal = Yes
MoveThresholdSpeed = 3
End

so,when these units enter into the effect area of the stealth generator,they will be stealthed.and when they move---like move out of the effect area---they will reveal themselves.but there is a problem:when the stealth generator be sold or destoryed,these stealthed units won't reveal themselves.so we fix it like this:

first,back to the codes of stealth generator,add:

Behavior = FireWeaponWhenDeadBehavior ModuleTag_xx
DeathWeapon = stealthdisableWeapon
StartsActive = Yes
End

Behavior = ObjectCreationUpgrade ModuleTag_xx
UpgradeObject = OCL_stealthdieDrone
TriggeredBy = Upgrade_AmericaBattleDrone
End

Behavior = GrantUpgradeCreate ModuleTag_xx
UpgradeToGrant = Upgrade_AmericaBattleDrone
End

Behavior = AIUpdateInterface ModuleTag_xx
End

add these codes into ObjectCreationList.ini

ObjectCreationList OCL_stealthdieDrone
CreateObject
Offset = X:0 Y:0 Z:1
ObjectNames = stealthdieDrone
IgnorePrimaryObstacle = Yes
Disposition = LIKE_EXISTING
Count = 1
RequiresLivePlayer = Yes
End
End

then add:

Object stealthdieDrone

Draw = W3DModelDraw ModuleTag_NOTREALLYADRAW
DefaultConditionState
Model = None
End
End

EditorSorting = SYSTEM
TransportSlotCount = 0 ;how many "slots" we take in a transport (0 == not transportable)
ArmorSet
Conditions = None
Armor = InvulnerableAllArmor
End
VisionRange = 0
ShroudClearingRange = 0

; RadarPriority = UNIT
KindOf = NO_COLLIDE UNATTACKABLE NO_SELECT

Body = ActiveBody ModuleTag_02
MaxHealth = 10000.0
InitialHealth = 10000.0
End

Behavior = AIUpdateInterface ModuleTag_03
End
Locomotor = SET_NORMAL DroneLocomotor

Behavior = PhysicsBehavior ModuleTag_05
Mass = 5000.0
KillWhenRestingOnGround = Yes
AllowBouncing = No
End

Behavior = SlavedUpdate ModuleTag_06
GuardMaxRange = 1
GuardWanderRange = 1
AttackRange = 1
AttackWanderRange = 1
ScoutRange = 1
ScoutWanderRange = 1
StayOnSameLayerAsMaster = Yes
End

Behavior = DestroyDie ModuleTag_08
DeathTypes = ALL
End

Behavior = FireWeaponWhenDeadBehavior ModuleTag_98
DeathWeapon = stealthdisableWeapon
StartsActive = Yes
End

Behavior = StealthUpdate ModuleTag_99
StealthDelay = 0 ; msec
StealthForbiddenConditions = NONE
InnateStealth = Yes
OrderIdleEnemiesToAttackMeUponReveal = No
End

Geometry = CYLINDER
GeometryMajorRadius = 5.0
GeometryMinorRadius = 6.0
GeometryHeight = 3.0
GeometryIsSmall = Yes
Shadow = SHADOW_VOLUME
ShadowSizeX = 89 ; minimum elevation angle above horizon. Used to limit shadow length

End

Weapon.ini again:

Weapon stealthdisableWeapon
PrimaryDamage = 0.001
PrimaryDamageRadius = 250.0
AttackRange = 1.0
DamageType = FLAME
DeathType = NORMAL
WeaponSpeed = 99999
RadiusDamageAffects = ALLIES
DelayBetweenShots = 50
ClipSize = 0
ClipReloadTime = 0
End

thus,when the stealth generator be sold or destoryed,these stealthed units will reveal themselves.
ravage is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-10-2003, 03:27 AM   #10 (permalink)
Senior Member
 
Join Date: Dec 2002
Posts: 1,031
Send a message via ICQ to Phoib Send a message via MSN to Phoib
Default

Hey, never thought of that drone idea..

This must be the first time I'm gratefull someone posts the entire code :P
Phoib 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
question about cloaking....... Death3464 Red Alert 2 & Yuri's Revenge Editing 13 04-18-2005 09:48 AM
Upgrade Field guyee Generals & Zero Hour Editing 13 05-01-2003 08:45 PM
Kill_Pilot Field droidkevin5 Generals & Zero Hour Editing 8 04-20-2003 10:07 AM
Medic, Field Mech. ????? briannickol Red Alert 2 & Yuri's Revenge Editing 1 01-17-2003 12:36 AM
Cloaking Aircraft SidSuicide Red Alert 2 & Yuri's Revenge Editing 5 01-16-2003 10:38 PM


All times are GMT -4. The time now is 08:12 AM.


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