모드 강좌

GEN 배틀마스터가 물로 이동하게 만들기

페이지 정보

작성자 크래커 아이디로 검색 댓글 0건 조회 5,931회
작성일10-02-05 14:17

본문

위즈 모드, 모던 워 모드 등에 해상 유닛이 있다.
해상 유닛도 일반 차량과 비슷하지만, 로코모터가 다르다.

로코모터(Locomotor)는 유닛의 이동방식, 속도, 회전율이 있으며. AI 업데이트 모듈에서 정한다.

배틀마스터에 보트의 로코모터를 달아주고, 배틀마스터를 생산하면 이동하지 못하고 제자리에서 바둥거린다.

그래서 여러 모드들은 해상 유닛만 생산하는 조선소가 있다.

  Behavior = AIUpdateInterface ModuleTag_03
    Turret
      TurretTurnRate = 120   ; turn rate, in degrees per sec
      ControlledWeaponSlots = PRIMARY
    End
    AutoAcquireEnemiesWhenIdle = Yes
  End

  Locomotor = SET_NORMAL BasicBoatLocomotor ;BattleMasterLocomotor




한번 물로 가면 육지로 올라가지 못한다.
수륙양용 로코모터를 주면 되지만 배가 육지로 다니면
더이상 배가 아니니까 -_-;;



아래 코드가 보트의 로코모터이다. 위즈 모드 것도 거의 비슷했다.
Sufaces=WATER를 주목하자.

Locomotor BasicBoatLocomotor
  Surfaces             = WATER
  Speed                = 40  ; in dist/sec
  SpeedDamaged         = 30  ; in dist/sec
  TurnRate             = 30 ; in degrees/sec
  TurnRateDamaged      = 30 ; in degrees/sec
  Acceleration         = 30  ; in dist/(sec^2)
  AccelerationDamaged  = 20  ; in dist/(sec^2)
  Lift                 = 120 ; in dist/(sec^2)
  LiftDamaged          = 80  ; in dist/(sec^2)
  Braking              = 50  ; in dist/(sec^2)
  MinTurnSpeed         = 0   ; in dist/sec
  PreferredHeight      = 4   ; at 1, 2, 3, the unit shakes from rounding.  at 0 the SurfaceRelativeHeight flag is ignored.
  AllowAirborneMotiveForce = Yes
  ZAxisBehavior                 = SURFACE_RELATIVE_HEIGHT
  Appearance                    = HOVER

  PitchStiffness              = 0.9   ; stiffness of the "springs" in the suspension forward & back.
  RollStiffness               = 0.95  ; stiffness of the "springs" in the suspension side to side.
  PitchDamping                = 0.9   ; How fast it damps.  0=perfect spring, bounces forever.  1=glued to terrain.
  RollDamping                 = 0.9   ; How fast it damps.  0=perfect spring, bounces forever.  1=glued to terrain.
  ForwardVelocityPitchFactor  = -0.1  ; How much velocity will cause the front to lift/dip
  LateralVelocityRollFactor   = 0.1   ; How much cornering will cause the chassis to roll.
  Apply2DFrictionWhenAirborne = Yes
  AirborneTargetingHeight     = 30
  LocomotorWorksWhenDead      = No   
End

배틀마스터에 보트의 로코모터를 추가하는 실험으로 두가지를 알았다.

  1. 해상 유닛은 물로 이동하는 로코모터가 필요함
  2. 해상 유닛을 생산하기 위해서는 조선소가 필요함

댓글목록

모드 강좌

334건 12 페이지
모드 강좌 목록
번호 제목 글쓴이 조회 날짜
169 GEN 크래커 아이디로 검색 5968 02-16
168 GEN 크래커 아이디로 검색 5932 02-05
167 C&C3 크래커 아이디로 검색 5918 04-22
166 RA2 럭키세븐 아이디로 검색 5909 11-24
165 RA2 크래커 아이디로 검색 5909 06-06
164 TS 크래커 아이디로 검색 5900 02-18
163 GEN 크래커 아이디로 검색 5894 05-26
162 RA2 크래커 아이디로 검색 5890 06-06
161 일반 크래커 아이디로 검색 5868 04-05
160 RA2 크래커 아이디로 검색 5832 06-06
159 C&C3 크래커 아이디로 검색 5828 04-28
158 RA3 ModSDK 아이디로 검색 5828 10-11
157 GEN 크래커 아이디로 검색 5792 02-22
156 C&C3 크래커 아이디로 검색 5791 04-23
155 TS 크래커 아이디로 검색 5782 02-18

검색