A downloadable Extension

Download NowName your own price

A CopperCube behavior to create a variety of weapons with a shoot mechanism for 3D games. Below is the list of properties the behavior provides you. This behavior is ported from my 2D Weapons Behavior, I already had a 2D weapons script on my PC for so long, I thought why not port it to 3D so that other users can utilize it too? 

3D Bullets Behavior:-

  • Gun name - Allows you to create different types of guns with names
  • Bullet node - Bullet that the created gun will shoot
  • Bullet impact node - Impact node that will show up when a bullet collides
  • Firepoint - Needs to be a child node, the point from where the bullet gets fired
  • Shoot towards Camera Target - shoot the bullets towards the Camera Target.
  • Shoot towards target - Shoot towards a target node
  • Reload Key - Keycode for reloading the gun
  • Reload delay - delay for reloading the gun
  • Auto Reload - Allows the reload to be done automatically when mags are empty
  • Shoot Key - Keycode for shooting with keyboard
  • Shoot delay - the delay between each shooted bullet
  • Bullet range  (time-based and distance-based) - range for bullet removal
  • Bullet speed - speed of the bullet
  • Bullet damage - the amount of damage the bullet will deal, works with AI behavior only
  • Bullet Magazine - the amount of bullets the magazine can hold for the gun
  • Max Ammo - the maximum amount of ammo a player can have for this gun
  • Ammo - Total ammo the player will have for the gun
  • Recoil (toggle) - Enable or disable recoil system
  • Recoil Vertical(toggle) - Decide if the recoil will be horizontal or vertical
  • Recoil Amount - The amount of recoil
  • Recoil thrust on the player - thrust applied on player opposite to  fire direction 
  • Vertical & Horizontal thrust - Apply with different thrust values for both
  • Shoot once - if the bullet should be fired continuously or once when shooting
  • Bullet looks into motion - Auto-rotate the bullet into the moving direction
  • Collision destroy delay- Time for bullet removal after hitting
  • Bullet additional rotation - additional rotation for bullet
The extension also allows us to execute actions for different situations.
  • Action on Shoot
  • Action on Reload
  • Action on Impact
  • Action on Empty Mag

Special variables can be used to change the data during runtime and for more control over the bullet action. Note that Player is the name of the scene-node on which the behavior is attached and Gun is the name of the gun you give in the behavior, this can be used when you have different guns and want to change individual gun property.

Player.activegun 
Sets the current active gun for the Player( to which the behavior is attached)
Gun.bulletspeed
Set the speed of the bullet for Gun for example (Pistol.bulletspeed)
Gun.bulletdamage
Set the damage the bullet of a gun deals to the AI (requires 2D AI Behavior)
Gun.bulletrange
Sets the range of the bullets for the Gun
Gun.bulletmagazine
Set the amount of bullets a magazine can hold for a Gun
Gun.shootdelay
Sets the delay between each bullet for the Gun
Gun.reloadtime
Sets the time taken by the Gun to Reload
Gun.recoilamount
Sets the recoil amount of the Gun
Gun.shoottarget
Sets the target node for the Gun to affect the shooting direction
Gun.addammo
Adds the ammo to the total ammo the player currently has for that Gun
Gun.maxammo
Sets the amount of maximum ammo for the Gun the player can have
Gun.bulletcount
Reads the amount of bullets left in the magazine
Gun.ammo
Reads the amount of total ammo player is having currently for the Gun


NOTE 2:- It also has leftover code of AI behavior stuff, as I haven't released a 3D AI NPC behavior yet, so some of the features might not work there, but I will soon create and add 3D AI.

This extension will receive a new update very soon.

Watch the usage tutorial here:-


 Glitched Velocity Discord    Glitched Velocity YouTube    Glitched Velocity Twitter   Support Me

StatusReleased
Rating
Rated 5.0 out of 5 stars
(1 total ratings)
AuthorGlitched Velocity
GenreAction, Shooter
TagsBullet Hell, coppercube, FPS, Shoot 'Em Up, Third-Person Shooter, Weapons

Download

Download NowName your own price

Click download now to get access to the following files:

behavior_JIC_3D_Bullets_V2_0.zip 6.7 kB

Comments

Log in with itch.io to leave a comment.

Wow thanks I really love the special variables aspect great for adding upgrades and other stuff