모드 강좌
GEN GLA 막사에 스파이 드론 추가하기
페이지 정보
작성자 크래커 아이디로 검색 0건 5,764회 작성일10-02-05 13:14본문
미국의 스파이 드론을 GLA 막사에서 사용할 수 있게 해보자.
Object\FactionBuilding.ini를 열어서 AmericaCommandCenter를 찾는다.
engineering을 검색하고 내리면 스파이 드론과 관련된 모듈이 있다.
Behavior = OCLSpecialPower ModuleTag_21
SpecialPowerTemplate = SpecialPowerSpyDrone
OCL = SUPERWEAPON_SpyDrone
CreateLocation = CREATE_ABOVE_LOCATION
End
이 모듈을 GLA 막사의 엔지니어링 파라미터에 붙여넣기 한다.
그리고 스파이 드론은 제너럴 스킬이 필요하니
스폐셜 파워를 SpecialPowerGLASpyDrone으로 변경해주자.
Behavior = OCLSpecialPower ModuleTag_17
SpecialPowerTemplate = SpecialPowerGLASpyDrone
OCL = SUPERWEAPON_SpyDrone
CreateLocation = CREATE_ABOVE_LOCATION
End
SpecialPower.ini를 열고 SpecialPowerSpyDrone을 복사해서
SpecialPowerGLASpyDrone을 만든다.
제너럴 스킬은 필요없으니 RequiredScience는 주석 처리한다.
SpecialPower SpecialPowerGLASpyDrone
Enum = SPECIAL_SPY_DRONE
ReloadTime = 90000 ; in milliseconds
PublicTimer = No
;RequiredScience = SCIENCE_SpyDrone
InitiateAtLocationSound = SpyDroneCreate
SharedSyncedTimer = Yes
RadiusCursorRadius = 250 ; align with factionunit.ini's SpyDrone's FinalVision
ShortcutPower = Yes ;Capable of being fired by the side-bar shortcut.
AcademyClassify = ACT_SUPERPOWER ;Considered a powerful special power that a player could fire. Not for simpler unit based powers.
End
CommandSet.ini에 들어가서 미국 커맨드 센터의 커맨드셋을 찾는다.
7번째에 스파이 드론이 있다.
CommandSet AmericaCommandCenterCommandSet
1 = Command_ConstructAmericaDozer
2 = Command_SpectreGunship
4 = Command_LeafletDrop
5 = Command_A10ThunderboltMissileStrike
6 = Command_Paradrop
7 = Command_SpyDrone
8 = Command_EmergencyRepair
9 = Command_DaisyCutter ;NOTE THIS GETS UPGRADED BELOW
10 = Command_SpySatelliteScan
13 = Command_SetRallyPoint
14 = Command_Sell
End
CommandButton.ini에서 Command_SpyDrone을 찾으면 아래 코드가 나온다.
복사해서 Command_GLASpyDrone으로 이름을 바꾸고,
옵션에 있는 NEED_SPECIAL_POWER_SCIENCE을 제거한다.
스폐셜 파워도 SpecialPowerGLASpyDrone으로 바꾼다.
CommandButton Command_GLASpyDrone
Command = SPECIAL_POWER
SpecialPower = SpecialPowerGLASpyDrone
Options = NEED_TARGET_POS CONTEXTMODE_COMMAND OK_FOR_MULTI_SELECT
TextLabel = CONTROLBAR:SpyDrone
ButtonImage = SAScout
ButtonBorderType = ACTION ; Identifier for the User as to what kind of button this is
DescriptLabel = CONTROLBAR:TooltipFireSpyDrone
RadiusCursorType = SPYDRONE
InvalidCursorName = GenericInvalid
End
커맨드 버튼을 GLA 막사의 커맨드셋에 연결시키자.
빈 자리인 12번에 스파이 드론을 추가했다.
CommandSet GLABarracksCommandSet
1 = Command_ConstructGLAInfantryRebel
2 = Command_ConstructGLAInfantryRPGTrooper
3 = Command_ConstructGLAInfantryTerrorist
4 = Command_ConstructGLAInfantryAngryMob
5 = Command_ConstructGLAInfantryHijacker
6 = Command_ConstructGLAInfantryJarmenKell
7 = Command_ConstructGLAInfantrySaboteur
8 = Command_UpgradeGLAInfantryRebelBoobyTrapAttack
; camo net
9 = Command_ConstructGLATankSuperPaladin
10 = Command_ConstructGLAVehicleTomahawkClone
11 = Command_UpgradeGLARebelCaptureBuilding
12 = Command_GLASpyDrone
13 = Command_SetRallyPoint
14 = Command_Sell
End
여기서 끝내도 되겠지만, 특수무기는 건물의 커맨드셋 말고도
인터페이스 바깥에 단축 아이콘처럼 나오는데 Shortcut이라고 한다.
CommandSet SpecialPowerShortcutUSA
1 = Command_SpyDroneFromShortcut
2 = Command_ParadropFromShortcut
3 = Command_A10ThunderboltMissileStrikeFromShortcut
4 = Command_EmergencyRepairFromShortcut
5 = Command_DaisyCutterFromShortcut
6 = Command_FireParticleUplinkCannonFromShortcut
7 = Command_SpySatelliteScanFromShortcut
8 = Command_CIAIntelligenceFromShortcut
9 = Command_SpectreGunshipFromShortcut
10 = Command_LeafletDropFromShortcut
END
Command_SpyDroneFromShortcut을 복사해서
Command_GLASpyDroneFromShortcut을 만들자.
스폐셜 파워도 모듈에 지정한 것과 동일하게 한다.
CommandButton Command_GLASpyDroneFromShortcut
Command = SPECIAL_POWER_FROM_SHORTCUT
SpecialPower = SpecialPowerGLASpyDrone
Options = NEED_TARGET_POS CONTEXTMODE_COMMAND NEED_SPECIAL_POWER_SCIENCE OK_FOR_MULTI_SELECT
TextLabel = OBJECT:SpyDrone
ButtonImage = SAScout
;ButtonBorderType = ACTION ; Identifier for the User as to what kind of button this is
DescriptLabel = CONTROLBAR:TooltipFireSpyDrone
RadiusCursorType = SPYDRONE
InvalidCursorName = GenericInvalid
End
GLA 단축 아이콘 목록에도 스파이 드론을 추가한다.
CommandSet SpecialPowerShortcutGLA
1 = Command_AmbushFromShortcut
2 = Command_EmergencyRepairFromShortcut
3 = Command_AnthraxBombFromShortcut
4 = Command_ScudStormFromShortcut
5 = Command_RadarVanScanFromShortcut
6 = Command_SneakAttackFromShortcut
7 = Command_GPSScramblerFromShortcut
8 = Command_GLASpyDroneFromShortcut
END
GLA 막사 모듈에 있는 스페셜 파워가 커맨드 버튼에 있는 것과
일치하지 않으면 스파이 드론을 선택했을 때 금지 커서가 뜨니 주의한다.
게임을 실행해서 테스트해보자.
GLA 막사의 커맨드셋과 단축 아이콘에 스파이 드론이 추가됬다.
적 기지에 스파이 드론을 띄운 모습이다.
사실 스폐셜 파워 모듈은 유닛에도 달 수 있다.
응용하면 유닛도 특수기술을 쓰게할 수 있다.