Attack on Toys

Attack on Toys

Not enough ratings
🔧 Attack on Toys MOD: Toy Vehicle Ground
By N7T-GAMES
• Create [TROOP] Vehicle Mod
   
Award
Favorite
Favorited
Unfavorite
🔧 Guides Previously Related to Vehicle Ground
⚑ Create [TROOP] Vehicle Prefab
  • You could make a clone from Finished Mod Example and Mod your own Vehicle

  • Or you could create from scratch by using these Base Prefabs:
    [TROOP] BaseVehicle Car
    [TROOP] BaseVehicle Tank

    [TROOP] BaseVehicle Helicopter
    [TROOP] BaseVehicle Plane
    [TROOP] BaseVehicle Ship
⚑ Add [DEAD PART]
  • What is [DEAD PART]? is part of body chunk that will become Ragdoll once the Toys Vehicle Dead & Explode to smitherin!

  • You could edit the [DEAD PART] Mesh & Collider from Finished Mod Example or you could create from scratch using [DEAD PART] Base

  • [DEAD PART] is using LOD System, make sure to add the Mesh correctly!
    • Example: Tractor_Front_Wheel, Tractor_Front_Wheel_001, Tractor_Front_Wheel_002

  • As an example from picture above
    1. All Front Wheels is 'Enter Death' (First State of Explosion) and became Ragdoll
    2. Then the Tractor Body will become a Ragdoll because it's 'After Death' (Second State of Explosion)
⚑ Add [RAMP]
  • Ramp is used for detecting forward & backward collision & colliding with Toys Soldier will cause them to go Ragdoll
  • You just need to adjust Box Collider Center & Size for the most part
⚑ Add [WHEEL]
  • Assign the [DEAD PART] Wheel to the [WHEEL]
  • Then adjust the Spring animation, the wheel goes downward (-0.1 by default)
  • Finally adjust the MaxWheelRrotation, if the Player goes to the right, then the Front Wheels will also go to the right by 15-Degree

  • There is two type of wheel from Official Asset:
    [WHEEL] Track Collision: it's using Box Collider, this would be useful for Tank or some very basic Ground Detection
    - Example (Tanks, Helicopter Landing, Plane Landing, Mega Mech Walking on Ground, etc)

    [WHEEL] Car Collision: it's shaped like Regular Tire, mostly for Car
⚑ Add [PLATFORM] For Player
  • It will create a moving platform, so Player could ride along with the Vehicle.
  • You just need to adjust the Positon & Collision Size for the most part
● (Optional) Add [SEAT] For Toy Soldier
  • You could use [MOD HELPER] to help adjust the position of your Seat, Don't forget to remove them afterwards.

  • You could add different ToyCategory in the SeatBaseScript
    • Example: ToyCategory - ArmyMan, BlocksMan
    That means ArmyMan, BlocksMan will able to use this Seat. Other ToysCategory CAN NOT sit.
● (Optional) Add [SKINNED STATIC MESH]
★ Vehicle Basic Components
● Adjust [HIT POINT]
  • Adjust [HIT POSITION] somewhere in the center, so the Toys AI Enemies could detect it as target and shoot the Vehicle

● Adjust [EFFECT] LowVehicleHP
  • Adjust [EFFECT] LowVehicleHP somewhere that make sense.
    • Example: Tank & Car the flame effect is somewhere in the engine

  • Make sure to assign the Effect to 'DamagedOnLowHPSmoke'

● Adjust [OBSTACLE]
  • This help Blocking the Pathfinding (Blue Color), so other Toys AI could go around it when the Vehicle is Dead
  • You may just need to adjust the Size from NavMeshObstacle
  • Make sure it's [OBSTACLE] NavMeshObject With 'Agent'

● Adjust [IsVisible]
  • Adjust the Purple Box to cover most of the 3D Vehicle Model and don't forget to revert back
  • This is for game Optimization

● Adjust [SELECTION]
  • You could Re-Scale it
  • This will show up when selected by [PLAYER] in RTS Mode

● Adjust [DECAL] SCALE
  • Decal Explosion will activate when Vehicle is Dead, you could adjust the size using ScaleSelect
★ [DRIVEABLE] Controls System
  • MovementSpeed: Adjust Player driving speed
  • AccelerationSpeed: Adjust Player driving acceleration speed

  • MovementRotationSpeed: Adjust Player driving rotation speed
  • AccelerationRotationSpeed: Adjust Player driving acceleration rotation speed

  • CameraRotations: IMPORTANT! the size must be 2, DO NOT change it
    • Element 0 - [DRIVEABLE] [CAMERA ROTATION]: Default Player driving camera position 'CameraStandardLocation'
    • Element 1 - [DRIVEABLE] [CAMERA ROTATION]: Player driving camera while Aiming position 'CameraAimLocation'

  • PlayerNonAimingX: IMPORTANT! the size must be 2, DO NOT change it
    • Adjust maximum Player mouse look up (Element 0) and look down (Element 1)

  • PlayerAimingX: IMPORTANT! the size must be 2, DO NOT change it
    • Adjust maximum Player mouse look up (Element 0) and look down (Element 1) while Aiming

  • BodySways: Assign body part that you want to add swaying animations
⚑ Add [DRIVEABLE] [CAMERA]
  • Assign [DRIVEABLE] [CAMERA] to Element 1, this is where camera position where player is Aiming
● Adjust Camera Position
  • Assign [CAMERA] and make sure the Transform position & rotation is (0 / 0 / 0)
  • You could see the Camera Preview to give you an idea to adjust [CAMERA] [DRIVEABLE] and 'CameraAimLocation'
⚑ Add [DRIVEABLE] - [SOUND LIBRARY]
★ Vehicle Ground - Stats & Required Components (FINAL CHECK)
  • Animator: Vehicle Walking Animations
    • Example: Jeep Wheel Rotation, Helicopter Blade, Mega Mech Walking Animation

  • [EFFECT] [SELECTION]: Show Vehicle being selected by [PLAYER] in RTS Mode
  • [EFFECT] [SPAWNER] [BLOOD]: Play this effect when Vehicle is wounded badly
  • [MOLD]: This will active when Toys is Out Of Plastic
  • [WEAPON]: Generally all Vehicle need at least one Weapon

  • [DEAD PART]: Vehicle Body part & Ragdolls
  • [OBSTACLE] NavMeshObject With 'Agent': This help Blocking the Pathfinding
  • [PLATFORM]: Create a moving platform for Player

  • [SOUND LIBRARY] Voice: Vehicle Idle Sound, getting Hurt, Dead Sound Effect, etc.
  • [SOUND LIBRARY] Driveable: Vehicle Driveable Sounds

  • [SKINNED MESH] (Optional): 3D Model & Ragdoll. You could use [SKINNED MESH] for Humanoids Vehicle.
    • Example: Mega Mech

  • [DECAL]: Decal Explosion will activate when Vehicle is Dead
  • DeadBodyExplosion: Explode particle effect when Vehicle is Dead
  • DamagedOnLowHPSmoke: Play particle effect when Vehicle is on Low HP

  • DyingTime: How long it stay dying (FOR VEHICLE IS SQUAD ONLY)
  • HasOnGroundFunction: The Vehicle rotation is based on the ground

  • DeathGroundPosition: Add death position to the Vehicle
    • Example: When Tank dead, it merges with the ground (Y Position Decrease) so it look more Dead
  • AngleDeadStatic: Set the angle when Vehicle is Dead. Large size Vehicle is recommended to set Angle below 5.

  • WaitingFollowerTimer: How long Vehicle wait for the Soldier or Player to enter the [SEAT]

    IMPORTANT!:
    - Make sure all required components is included!
    - Make sure all things that related to Mesh is inside [MESH] [WORLD] ROOT