Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

2 Pages12>
Options
Go to last post Go to first unread
Offline AdrianeMapMaker  
#1 Posted : Monday, December 5, 2016 4:24:50 AM(UTC)
AdrianeMapMaker
General
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 3/8/2016(UTC)
Posts: 1,165
Philippines

Thanks: 312 times
Was thanked: 185 time(s) in 149 post(s)
hey guys did you know how to add some stealth with a unit example like a stealth Raptor

what do i need to add in a map ini help pls
A part of ZH worldbuilders map making community
https://discord.gg/tJ6zyGb

UserPostedImage





Sponsor
Offline acidbrain  
#2 Posted : Monday, December 5, 2016 5:19:10 AM(UTC)
acidbrain
General
Joined: 12/30/2011(UTC)
Posts: 982

Thanks: 95 times
Was thanked: 575 time(s) in 364 post(s)
If im not mistaking these modules have something to do with it...
Code:

StealthUpdate
[this module allows the use of SoundStealthOn and SoundStealthOff parameters on the object and is hardcoded to display MESSAGE:StealthNeutralized when the object has been discovered]
    UseRiderStealth             = [Yes/No]
	StealthDelay = [integer, milliseconds]
	MoveThresholdSpeed = [integer]
	StealthForbiddenConditions = [conditions list]
	HintDetectableConditions = [conditions list]
	FriendlyOpacityMin = [percentage]
	FriendlyOpacityMax = [percentage]
	PulseFrequency = [integer, milliseconds]
	RevealDistanceFromTarget = [real number]
	OrderIdleEnemiesToAttackMeUponReveal = [Yes/No]
	InnateStealth = [Yes/No]
	DisguisesAsTeam = [Yes/No	requires KindOf = DISGUISER]
	DisguiseFX = [entry from FXList.INI	requires KindOf = DISGUISER]
	DisguiseRevealFX = [entry from FXList.INI	requires KindOf = DISGUISER]
	DisguiseTransitionTime = [integer, milliseconds]
	DisguiseRevealTransitionTime = [integer, milliseconds]
    EnemyDetectionEvaEvent = [Entry(s) from Eva.ini]
    OwnDetectionEvaEvent = [Entry(s) from Eva.ini]
End


StealthUpgrade
[enables use of StealthUpdate module on this object, requires InnateStealth = No]
	TriggeredBy = [entry(s) from Upgrade.INI]
    FXListUpgrade = [entry from FXList.INI]
	ConflictsWith = [entry(s) from Upgrade.INI]
	RequiresAllTriggers = [Yes/No]
End

Don't copy/paste from this because there are tabs in it what will cause an error...

You can use the Addmodule command to add the new module, see This thread for examples...

Greetz

Edited by user Monday, December 5, 2016 5:24:43 AM(UTC)  | Reason: Not specified

Panem et kirkinses
thanks 1 user thanked acidbrain for this useful post.
CommieDog on 1/4/2017(UTC)
Offline AdrianeMapMaker  
#3 Posted : Monday, December 5, 2016 8:04:23 PM(UTC)
AdrianeMapMaker
General
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 3/8/2016(UTC)
Posts: 1,165
Philippines

Thanks: 312 times
Was thanked: 185 time(s) in 149 post(s)
need a true example pls i am noob when its time for coding

By the way thanks for those map.ini code snippets those are pretty awesome Big Smile Thumb Up Thumb Up Thumb Up

Edited by user Monday, December 5, 2016 8:09:28 PM(UTC)  | Reason: Not specified

A part of ZH worldbuilders map making community
https://discord.gg/tJ6zyGb

UserPostedImage





Offline acidbrain  
#4 Posted : Tuesday, December 6, 2016 1:00:19 AM(UTC)
acidbrain
General
Joined: 12/30/2011(UTC)
Posts: 982

Thanks: 95 times
Was thanked: 575 time(s) in 364 post(s)
Try this code, put it in a map.ini...
Code:

Object AmericaJetRaptor
  AddModule
    Behavior = StealthUpdate Module_Stealth
      StealthDelay                          = 1500
      StealthForbiddenConditions            = FIRING_PRIMARY ATTACKING
      FriendlyOpacityMin                    = 50.0%
      FriendlyOpacityMax                    = 100.0%
      InnateStealth                         = Yes
      OrderIdleEnemiesToAttackMeUponReveal  = Yes
    End
  End
End

Greetz
Panem et kirkinses
thanks 2 users thanked acidbrain for this useful post.
AdrianeMapMaker on 12/6/2016(UTC), CommieDog on 1/4/2017(UTC)
Offline zero hour mad map maker  
#5 Posted : Tuesday, December 6, 2016 1:10:59 AM(UTC)
zero hour mad map maker
Colonel
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 12/27/2013(UTC)
Posts: 681
Canada
Location: MLP

Thanks: 181 times
Was thanked: 143 time(s) in 119 post(s)
And if you're adding it to a turret, like the patriot missile battery, you need to add some more coding so that the turret ATTACKS and becomes unstealted when it is attacking. Because if you have the turret just stealthed, it won't become un-stealthed and won't attack. I'm sure it doesn't apply to raptors, because I tried the coding on the China Bunker.......and the game crashed LOL. It DOES work for missile batteries (annihilationzh taught me that handy bit of coding xD)

Code:

Object SupW_AmericaPatriotBattery
 RemoveModule ModuleTag_07
 AddModule
  Behavior = StealthUpdate ModuleTag_17
    StealthDelay                = 2500 ; msec
    StealthForbiddenConditions  = ATTACKING USING_ABILITY TAKING_DAMAGE
    InnateStealth               = Yes ;Require the upgrade first
    OrderIdleEnemiesToAttackMeUponReveal  = Yes
  End
  Behavior = AIUpdateInterface ModuleTag_07
    Turret
      TurretTurnRate        = 180   // turn rate, in degrees per sec
      TurretPitchRate       = 180
      AllowsPitch           = Yes
      NaturalTurretPitch    = 45   
      GroundUnitPitch       = 40
      MinPhysicalPitch      = -20
      ControlledWeaponSlots = PRIMARY SECONDARY TERTIARY
      MinIdleScanInterval   = 250    ; in milliseconds
      MaxIdleScanInterval   = 250    ; in milliseconds
      MinIdleScanAngle      = 0       ; in degrees off the natural turret angle
      MaxIdleScanAngle      = 360     ; in degrees off the natural turret angle
    End
 
    AutoAcquireEnemiesWhenIdle = Yes Stealthed ;ATTACK_BUILDINGS; defensive weapon
    MoodAttackCheckRate        = 250
  End
 End
End

Edited by user Tuesday, December 6, 2016 11:43:23 AM(UTC)  | Reason: Misspelled Annihilationzh's user name.....

Ready for Anything! --- C&C Labs Staff , Maps Staff , Moderator
thanks 1 user thanked zero hour mad map maker for this useful post.
AdrianeMapMaker on 12/6/2016(UTC)
Offline AdrianeMapMaker  
#6 Posted : Tuesday, December 6, 2016 2:10:30 AM(UTC)
AdrianeMapMaker
General
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 3/8/2016(UTC)
Posts: 1,165
Philippines

Thanks: 312 times
Was thanked: 185 time(s) in 149 post(s)
look like it awesome to be stealth hahaha thanks guys
A part of ZH worldbuilders map making community
https://discord.gg/tJ6zyGb

UserPostedImage





Offline Annihilationzh  
#7 Posted : Tuesday, December 6, 2016 4:25:05 AM(UTC)
Annihilationzh
General
Joined: 8/2/2008(UTC)
Posts: 1,779
United Kingdom

Thanks: 26 times
Was thanked: 475 time(s) in 331 post(s)
Originally Posted by: Zero Hour Mad Map Maker Go to Quoted Post
And if you're adding it to a turret, like the patriot missile battery, you need to add some more coding so that the turret ATTACKS and becomes unstealted when it is attacking. Because if you have the turret just stealthed, it won't become un-stealthed and won't attack. I'm sure it doesn't apply to raptors, because I tried the coding on the China Bunker.......and the game crashed LOL. It DOES work for missile batteries (annilationzh taught me that handy bit of coding xD)

That is the AI module of a Patriot Battery given a slight adjustment to make it choose to reveal itself. Bunkers don't have a ModuleTag_07 or AI or a turret, so that wouldn't work.

And there's a hi in annihilation.
If you need help, post in the forum. You'll get help a lot faster than if you send me a PM.

I reject all buddy requests. I don't think 'buddy' needs to be made official. It's not like you're marrying me.
thanks 1 user thanked Annihilationzh for this useful post.
zero hour mad map maker on 12/6/2016(UTC)
Offline zero hour mad map maker  
#8 Posted : Tuesday, December 6, 2016 11:40:55 AM(UTC)
zero hour mad map maker
Colonel
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 12/27/2013(UTC)
Posts: 681
Canada
Location: MLP

Thanks: 181 times
Was thanked: 143 time(s) in 119 post(s)
Originally Posted by: Annihilationzh Go to Quoted Post
Originally Posted by: Zero Hour Mad Map Maker Go to Quoted Post
And if you're adding it to a turret, like the patriot missile battery, you need to add some more coding so that the turret ATTACKS and becomes unstealted when it is attacking. Because if you have the turret just stealthed, it won't become un-stealthed and won't attack. I'm sure it doesn't apply to raptors, because I tried the coding on the China Bunker.......and the game crashed LOL. It DOES work for missile batteries (annilationzh taught me that handy bit of coding xD)

That is the AI module of a Patriot Battery given a slight adjustment to make it choose to reveal itself. Bunkers don't have a ModuleTag_07 or AI or a turret, so that wouldn't work.

And there's a hi in annihilation.


Yeah I kind of realized that when the game crashed xD. I'm sorry about the misspelling, I'm absolutely horrible at typos..... Almost every post of mine will say "edited by Zero Hour Mad Map Maker...."


Thank You!


(Just like this post, right now, I had to edit it for typos again......Oops.)

Edited by user Tuesday, December 6, 2016 11:42:06 AM(UTC)  | Reason: Not specified

Ready for Anything! --- C&C Labs Staff , Maps Staff , Moderator
Offline MRBraaanz  
#9 Posted : Thursday, April 7, 2022 11:19:38 PM(UTC)
MRBraaanz
Private
Joined: 3/4/2022(UTC)
Posts: 10

Thanks: 4 times
Was thanked: 1 time(s) in 1 post(s)
hello i am new to coding zero hour, and sorry im late. does anyone know what bit of code you can copy from the pathfinder to make an infantry unit like a red guard stealthed for example if thats possible? many thanks
Offline AdrianeMapMaker  
#10 Posted : Friday, April 8, 2022 7:43:34 AM(UTC)
AdrianeMapMaker
General
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 3/8/2016(UTC)
Posts: 1,165
Philippines

Thanks: 312 times
Was thanked: 185 time(s) in 149 post(s)
your indeed late... anyways most of the code are literally self explanatory ..

"stealth"

Behavior = StealthUpdate ModuleTag_09
StealthDelay = 0 ; msec
StealthForbiddenConditions = MOVING ; stays stealthy while attacking
FriendlyOpacityMin = 30.0%
FriendlyOpacityMax = 80.0%
PulseFrequency = 500 ; msec
MoveThresholdSpeed = 3
InnateStealth = Yes
OrderIdleEnemiesToAttackMeUponReveal = Yes
End

A part of ZH worldbuilders map making community
https://discord.gg/tJ6zyGb

UserPostedImage





thanks 1 user thanked AdrianeMapMaker for this useful post.
MRBraaanz on 4/8/2022(UTC)
Offline MRBraaanz  
#11 Posted : Friday, April 8, 2022 1:59:14 PM(UTC)
MRBraaanz
Private
Joined: 3/4/2022(UTC)
Posts: 10

Thanks: 4 times
Was thanked: 1 time(s) in 1 post(s)
cheers! ngl I am new to coding, I just want to balance and possibly add a few units, but I have played this game since like 05 recently had the thought of atemmpting to mess around with code, also archipelago is an awsome map
Offline MRBraaanz  
#12 Posted : Sunday, April 17, 2022 10:45:01 PM(UTC)
MRBraaanz
Private
Joined: 3/4/2022(UTC)
Posts: 10

Thanks: 4 times
Was thanked: 1 time(s) in 1 post(s)
Sorry to be a nuisance, but does anyone know the code to make a defensive building have the characteristics of a GLA tunnel network i.e be able to garrison units in and send them to another of the same building (if that makes any sense!) I am attempting to make a custom general your help would be much appreciated sorry if you struggle to understand my English!
Offline UTD^Force  
#13 Posted : Monday, April 18, 2022 8:07:51 PM(UTC)
UTD^Force
Colonel
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 8/13/2013(UTC)
Posts: 824
Jordan
Location: Right around the corner

Thanks: 430 times
Was thanked: 184 time(s) in 168 post(s)
You aren't being a nuisance.
I've never needed to do what you want but it might be this behaviour that allows the tunnel network to be a... tunnel network lol. You will probably need to edit the new building's commandset to allow evacuating specific units

Code:

  Behavior = TunnelContain ModuleTag_05
    TimeForFullHeal     = 5000   ;(in milliseconds)
  End
--------------
CommandSet GLATunnelNetworkCommandSet
  1  = Command_StructureExit
  2  = Command_StructureExit
  3  = Command_StructureExit
  4  = Command_StructureExit
  5  = Command_StructureExit
  6  = Command_StructureExit
  7  = Command_StructureExit
  8  = Command_StructureExit
  9  = Command_StructureExit
  10 = Command_StructureExit
  11 = Command_TunnelEvacuate
  12 = Command_UpgradeGLACamoNetting
;  12 = Command_Stop
  13 = Command_SetRallyPoint  
  14 = Command_Sell
End

A Muslim, ask me anything about Islam if you want

UTD^Force

Moderator and former map reviewer
Big fan of C&C Labs
thanks 1 user thanked UTD^Force for this useful post.
MRBraaanz on 4/21/2022(UTC)
Offline MRBraaanz  
#14 Posted : Tuesday, April 19, 2022 4:28:00 PM(UTC)
MRBraaanz
Private
Joined: 3/4/2022(UTC)
Posts: 10

Thanks: 4 times
Was thanked: 1 time(s) in 1 post(s)
Thanks for the help man it worked!! Just trying to see what wacky generals buildings, units and vehicles I can make, I managed to make a Chinese sniper, changed all the animations and skin to USABiohazard suit and it turned out pretty good. apart from the fact I gave him the Jarmen Kell ability, he's overpowered asf haha will have to change him to a pathfinders behaviours at some point to make him more balanced.
Offline UTD^Force  
#15 Posted : Wednesday, April 20, 2022 4:59:04 PM(UTC)
UTD^Force
Colonel
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 8/13/2013(UTC)
Posts: 824
Jordan
Location: Right around the corner

Thanks: 430 times
Was thanked: 184 time(s) in 168 post(s)
Glad to help.

A Muslim, ask me anything about Islam if you want

UTD^Force

Moderator and former map reviewer
Big fan of C&C Labs
thanks 1 user thanked UTD^Force for this useful post.
MRBraaanz on 4/21/2022(UTC)
Offline MRBraaanz  
#16 Posted : Thursday, April 21, 2022 7:24:22 PM(UTC)
MRBraaanz
Private
Joined: 3/4/2022(UTC)
Posts: 10

Thanks: 4 times
Was thanked: 1 time(s) in 1 post(s)
Might I ask why you share this link <3 ?
Offline UTD^Force  
#17 Posted : Thursday, April 21, 2022 8:43:02 PM(UTC)
UTD^Force
Colonel
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 8/13/2013(UTC)
Posts: 824
Jordan
Location: Right around the corner

Thanks: 430 times
Was thanked: 184 time(s) in 168 post(s)
Originally Posted by: MRBraaanz Go to Quoted Post
Might I ask why you share this link <3 ?

You just did, jk.

That is my signature, I do not copy and paste this link with every reply I write.
If your question, however, is 'why is that link my signature?' I'll try to be concise.
I'm a Muslim, and in Islam the rights of the parents are stressed upon and emphasized many time in the Quran and Sunnah of our beloved prophet Muhammad (may peace be upon him).
Here is an example from the holy Quran on how Allah tells us to treat our parent even if they tell us to sin:

Quote:
And We have commanded people to ˹honour˺ their parents. Their mothers bore them through hardship upon hardship, and their weaning takes two years. So be grateful to Me and your parents. To Me is the final return.

But if they pressure you to associate with Me what you have no knowledge of, do not obey them. Still keep their company in this world courteously, and follow the way of those who turn to Me ˹in devotion˺. Then to Me you will ˹all˺ return, and then I will inform you of what you used to do.


The holy Quran, Surah Luqman, 31:14-15

And from the sunnah of our beloved prophet Muhammad (peace be upon him):
Quote:
"Abu Huraira reported that a person said:

Allah's Messenger, who amongst the people is most deserving of my good treatment? He said: Your mother, again your mother, again your mother, then your father, then your nearest relatives according to the order (of nearness)."

Reference : Sahih Muslim 2548b

So in short, I appreciate my parents for the rights that Allah gave them and for what they did for me, they weren't perfect (non of us is) but they still did their best. I am grateful to Allah and my parents for who I am now.

If you have any questions regarding Islam, I made a thread here where I try to answer other forum members' questions to the best of my capability.

Edited by user Thursday, April 21, 2022 9:20:45 PM(UTC)  | Reason: Not specified

A Muslim, ask me anything about Islam if you want

UTD^Force

Moderator and former map reviewer
Big fan of C&C Labs
thanks 1 user thanked UTD^Force for this useful post.
MRBraaanz on 4/21/2022(UTC)
Offline MRBraaanz  
#18 Posted : Thursday, April 21, 2022 9:40:21 PM(UTC)
MRBraaanz
Private
Joined: 3/4/2022(UTC)
Posts: 10

Thanks: 4 times
Was thanked: 1 time(s) in 1 post(s)
I see, I am not religious in any way shape or form, but I respect all religions and beliefs. Those are very meaningful quotes and morals to live by I must say, thankyou for showing an insight to the Islamic faith I do wish to one day learn more indepth about it, a few of my friends are practising muslims, and the link/signature directs to a good song :)
Offline UTD^Force  
#19 Posted : Thursday, April 21, 2022 9:56:03 PM(UTC)
UTD^Force
Colonel
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 8/13/2013(UTC)
Posts: 824
Jordan
Location: Right around the corner

Thanks: 430 times
Was thanked: 184 time(s) in 168 post(s)
I'm glad that you appreciate these morals, and if you allow me to advise you, I'd ask you to contemplate life and what's its purpose. For this life is very, very short.
If you have the time, check this video out it is only 7 minutes long, but it might move the urge inside you to look for the true purpose.
I'm asking you to look into what you can look into, Islam and other religions, and see for yourself where the truth lies.
Allah says in the holy Quran:
Quote:
Did you then think that We had created you without purpose, and that you would never be returned to Us?”

The holy Quran, Surah Al-Mu'minun 23:115

Have a nice day.

Edited by user Thursday, April 21, 2022 9:59:45 PM(UTC)  | Reason: Not specified

A Muslim, ask me anything about Islam if you want

UTD^Force

Moderator and former map reviewer
Big fan of C&C Labs
Offline MRBraaanz  
#20 Posted : Saturday, April 23, 2022 7:44:35 PM(UTC)
MRBraaanz
Private
Joined: 3/4/2022(UTC)
Posts: 10

Thanks: 4 times
Was thanked: 1 time(s) in 1 post(s)
Very true, and the video was so inspirational, I will definately be diving more into the subject, and have a good one!
thanks 1 user thanked MRBraaanz for this useful post.
UTD^Force on 4/24/2022(UTC)
Users browsing this topic
Guest (2)
2 Pages12>
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.