Attack on Toys

Attack on Toys

Not enough ratings
🔧 Attack on Toys MOD: Toy Soldier
By N7T-GAMES
• Create [TROOP] Soldier
   
Award
Favorite
Favorited
Unfavorite
⚑ Create [SKINNED MESH] - Soldier 3D Model
● Blender 3D Model Set To Humanoid
  • Click your 3D Model and then set Rig to Humanoid

  • In some special cases you might set it to Generic
    • Example: Cockroaches, Ant, Bee, etc (Because they are creature and not Humanoid)
● Blender 3D Model To [SKINNED MESH]
  • Base Prefab: [SKINNED MESH] Base

● Create Attachments & Parts
  • Right Hand Attachment
  • Left Hand Attachment
  • Hat Attachment
  • Back Attachment
    IMPORTANT: You must assign them in-order

  • Also don't forget to create [HIT POINT], this is where enemy AI will target & shoot your Soldier. Recommended to put [HIT POINT] somewhere in body chest area bone.

● Create Soldier Ragdoll
    • Here some Recommended Ragdoll Mass & Strength:
  • Army Man Category: 20 & 500
  • Blocks Man Category: 40 & 500
  • Robots Category: 50 & 500
  • Action Figure Category: 70 & 500

● Adjust Damage Scale *Example Headshot x2 Damage


● Adjust Soldier [IsVisible]
  • Adjust the Purple Box to cover most of the 3D Soldier Model and don't forget to revert back
  • This is for game Optimization
⚑ Soldier Animations *Example Cowboy
★ Soldier - Data & Stats
Base Prefab - [TROOP] Soldier
  • You could make a clone from Finished Mod Example and Mod your own Soldier

  • Or you could create from scratch by using this Base Prefabs:
    [TROOP] BaseSoldier

NavMeshAgent - Pathfinding
  • Speed: This is for soldier Movement Speed, so you DO NOT need to set Movement Speed from ToysPlayerBaseScript
  • Angular & Acceleration is Optional. Recommended to use default value.
  • Radius: it's recommended to have extra radius based on the size of your Soldier, so the soldier will look more spread out while in battle.
  • Height: The hieght of your Soldier. This value will also be used by Soldier that has FlyingNavmeshSpeed • Example: Flying Bee, Soldier using jetpack, etc.

ToysPlayerBaseScript - Stats
  • NationTeamID: DO NOT Change this value, except if you want to create a Terror AI
    • Example: Cockroach, Ants, Zombies, Bee, etc (Set NationTeamID to 8)

  • ToyCategory: Set your Soldier Toy Category
  • HP: Health Points

  • Weapon - Damage & Radius Scale: If you want to adjust the damage or radius you must use this value. DO NOT change it directly from [WEAPON] that is inside your Soldier Prefab. You may NO need to assign [WEAPON] Manually, it will generated automatically after Baked.
    IMPORTANT! The first Weapon (Weapon / Element 0) is Primary Weapon for the Toys AI. This will affect AI Search Radius & Search Rule
    • Example: Army Medic will use Healing Weapon as Primary Weapon, and searching wounded friendlies instead of attacking enemies.

  • DeadBodyExplosion (Optional): Explode particle effect when Soldier is Dead.
  • RagdollTime: How long it stay ragdoll
  • DyingTime: How long it stay dying
  • MinimumLevelDying: Minimum Soldier Level to unlock Dying Ability
  • CustomZombieTerrorSpawn: if it blank, it will spawn Official Zombie by default

  • isAbleToSit: Set is your soldier could seated Automatically, Manually, or can't be seated at all.
    • Example: Soldier Builder is Manually Seated (Recommended), because you want the AI to focus on building stuff.

  • AnimationWalkingSpeed: Adjust you walking speed animation.

  • HasOnGroundFunction: The Soldier rotation is based on the ground. This is mostly used fro Vehicle Ground instead of Soldier. • Soldier Example: Cockroach, Ants

  • FlyingNavmeshSpeed: Soldier has ability to fly, you could adjust NavmeshAgent Height for how far it can go.

  • FrequentIdleSound: How frequent is Soldier Idle Voice is being played. Higher value will make the Soldier speak more and more. You might need to tone down this value, except if it's Hero Soldier or Zombie Growling, most people might find it to be annoying.

  • ShootAtFrameTime: You might need lot of testing, to adjust Animation Attack Restart to get perfect animation that you desired. It will restart the attack animation from 0% to 100% Animation Time

  • CustomAttackAnimationSpeed: Attack Animation Speed is calculated automatically, but if you feel the need to adjust it's speed manually to get perfect animation you could use this function. Set the Value to 0 to set it by default automatically.

  • AddSinkIntoWaterHeight: How much sink is Soldier need to submerge/swimming into the water. Higher value means soldier will submerge more downwards into the water.
● (Optional) Enable HERO Ability
  • Hero has some resistant to Ragdoll
  • Hero is very special, it's recommended to increase HP, Damage, & other Stats and also limit the Max Spawn limit to one spawn in [GHOST] Spawn Setting
  • HeroIcon.png & HeroFrontIcon.png size is (64 x 64)
● (Optional) Create Paratrooper Soldier
  • You might need to add [HOVER] Ability, so the soldier could go downward slowly to the ground.
  • You may add your own Parachuting Animation on 'Out_Of_Plastic' Animations section
● (Optional) Enable Terror Mode
  • If you want to create Zombies, Insect, etc... where Player could fight in Invasion Terror Mode. You must set the NationTeamID = 8
  • You might need to set DyingTime = 0 to DISABLE Dying Ability... it would be weird if Zombies has Dying Ability right? (this one is completely optional)
★ Soldier - Required Components (FINAL CHECK)
  • Animator: Soldier Animations
  • [EFFECT] [SELECTION]: Show Soldier being selected by [PLAYER] in RTS Mode
  • [EFFECT] [SPAWNER] [BLOOD]: Play this effect when Soldier is wounded badly
  • [MOLD]: This will active when Toys is Out Of Plastic
  • [SKINNED MESH]: 3D Model & Ragdoll.
  • [WEAPON]: Generally all Soldier need at least one Weapon, except some in special cases: Like Army Plastic Sweeper don't have any Weapon.
  • [SOUND LIBRARY] Voice: Soldier Idle Sound, getting Hurt, Dead Sound Effect, etc.

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

● Soldier - [MOLD]
  • You could Re-Scale it
  • It need Mesh Collider Convex (Green Square Box in picture above)

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

● Soldier - [BLOOD]
  • Blood effect will show up when soldier is wounded
3 Comments
Dar4118 21 Apr, 2024 @ 2:53pm 
Hope we can make new factions through this.
Shella Chan 张血乐 1 Jun, 2023 @ 7:02am 
too complicated and weird set up
XenoAisam★ 1 Jun, 2023 @ 5:55am 
developer, pls use FBX format because not all people use blender