모드 강좌
GEN 배틀마스터가 물로 이동하게 만들기
페이지 정보
본문
위즈 모드, 모던 워 모드 등에 해상 유닛이 있다.
해상 유닛도 일반 차량과 비슷하지만, 로코모터가 다르다.
로코모터(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
배틀마스터에 보트의 로코모터를 추가하는 실험으로 두가지를 알았다.
-
해상 유닛은 물로 이동하는 로코모터가 필요함
-
해상 유닛을 생산하기 위해서는 조선소가 필요함