Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need help(YR coding)
#6
Ok, let's back up the first question was about the gate. I think having the AI build gates is pointless unless it is being used for a campaign, but that is your choice. Giving the AI to choose wither to build walls or sandbags they have always chosen to build walls for me, once again having sand bags is your choice and better for campaign.



you have to put the gate in as a building types. the number is where the are placed in the rules.i have reordered my rules so they are higher in the list then most people.

74=BORDERGATE1
75=BORDERGATE2

then give it rules.
give it Prerequisite=BARRACKS <- which side will build it. I suggest making 1 for each side (all, sov, yuri)

; Border Gate crossing in wall
[BORDERGATE1]:RH
UIName=Name:BORDERGATE1
Name=Gate (EAST/WEST)
BuildCat=Combat
Strength=100
Prerequisite=BARRACKS
Armor=wood
TechLevel=1
Selectable=yes
Capturable=false
Insignificant=yes
Adjacent=8
Owner=Russians,Arabs,Confederation,YuriCountry,Africans,Americans,tion,Africans,Arabs,YuriCountry
Cost=250
Points=50
Repairable=true
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
MaxDebris=0
Gate=yes
DeployTime=.044
GateCloseDelay=.2
ThreatPosed=0 ; This value MUST be 0 for all building addons
;DamageParticleSystems=SparkSys,LGSparkSys
;IsBase=no
BaseNormal=no ;psst....IsBase isn't a Rules flag
AIBuildThis=no


[BORDERGATE2] ;RH
UIName=Name:BORDERGATE2
Name=Gate (North/South)
Image=BORDERGATE2
BuildCat=Combat
Strength=300 ;350 ;400 ;200 ;wall = 300/concrete, pillbox = 400/steel
Prerequisite=barracks
Armor=steel ;wood
TechLevel=1
Selectable=yes
Capturable=false
Insignificant=yes
Adjacent=8
Owner=Russians,Arabs,Confederation,YuriCountry,Africans,Americans,tion,Africans,Arabs,YuriCountry
Points=30 ;50
Repairable=true
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
MaxDebris=0
Gate=yes
DeployTime=.044
GateCloseDelay=.2
ThreatPosed=0
BaseNormal=no
AIBuildThis=no
ClickRepairable=yes



give it art
this is for the gate that moves up and down the east-west gate and the north-south gate

[BORDERGATE1]
Image=GAGATE_A
Remapable=yes
Cameo=GATEICON
Foundation=3x1
Height=2
Buildup=GAGATE_A
SpecialZOverlay=GAGATEZA
GateStages=9
NewTheater=yes
CanHideThings=False
CanBeHidden=False

[BORDERGATE2]
Image=BORDERGATE2
Remapable=yes
Cameo=GAT2ICON
Foundation=1x3
Height=2
Buildup=EGATE_A2
SpecialZOverlay=BORDERGATE2_A
GateStages=9
NewTheater=no
CanHideThings=False
CanBeHidden=False

you have to put both shp files for the gates into a mix file. you have to put the gate in the rules. i think this is where. i haven't used them yet but someone will probably respond to this and say where.

ConcreteWalls=GAWALL,NAWALL,GAFWLL
NSGates=
EWGates=


it is 4 am so i hope i have given some help. I have no clue on what you want with the colors.
Reply


Messages In This Thread
Need help(YR coding) - by glenn128 - 02.11.2008, 22:51:09
RE: Need help(YR coding) - by Electro - 02.11.2008, 22:59:03
RE: Need help(YR coding) - by Guest - 03.11.2008, 00:06:07
RE: Need help(YR coding) - by Electro - 03.11.2008, 01:19:06
RE: Need help(YR coding) - by Blade - 03.11.2008, 01:44:53
RE: Need help(YR coding) - by Nikademis Von Hisson - 03.11.2008, 11:16:40
RE: Need help(YR coding) - by glenn128 - 03.11.2008, 11:43:13
RE: Need help(YR coding) - by glenn128 - 03.11.2008, 12:07:03
RE: Need help(YR coding) - by glenn128 - 03.11.2008, 12:19:00
RE: Need help(YR coding) - by glenn128 - 03.11.2008, 12:41:38



Users browsing this thread: 1 Guest(s)