G4M3R57
Terrarian
This mod is about turrets, sentries or whatever you want to call it, for Base/House Defense style. (or farming)
I thought about sharing this mod so that others could use it as well, so you can decompile it for see how it works, also you can use it for your own modding. (please, don't forget give me some credits)
This mod is open to suggestions, just reply below explaining your idea and I will see if I can introduce it.
Note: this mod still in progress, so it may have some inconveniences.
If you found any bug or smth weird, please report it as quickly as possible.
Important: before play in MP make sure to pickup all turrets, else these will behave buggy, actually this mod don't works properly in MP. I will try to fix it in next version. I apologize for this.
Watch this thread to receive notifications about new updates.
That being said, let's begin.
Updated to tModLoader v0.10.1.5!
Damage: 32
Knockback: 4
Use time: 48
Feature
Can repair certain amount turret HP with nearest ore in player inventory.
Price
Use
Hit turret with wrench to repair, if need repair will consume, else will not.
@
Make sure to read "Features" section before continue.
Health: 420
Defense: 38
Base damage: 60 (can't crit)
Knockback: 2
Shot time: 20
Distance: 50 tiles
x1,
x1,
x1,
/
x50,
x40,
x8,
x9,
x10,
x20
@
+8 defense
thorns buff (50% dmg & +5 Kb)
+50% damage
+15 damage
20% change to not consume ammo, +20% with Ammo Box
Health: 350
Defense: 30
Base damage: 45
Knockback: 5.25
Shot time: 35
Distance: 45 tiles
x1,
x1,
x1,
/
x40,
x30,
x6,
x6
@
+8 defense
thorns buff (50% dmg & +5 Kb)
+50% damage
+15 damage
20% change to not consume ammo, +20% with Ammo Box
Health: 380
Defense: 35
Ammo: 1 mana/hit
Base damage: 35 in 1/7.5s (can't crit)
Knockback: 0 (10 if touch)
Shot time: 4
Distance: 40 tiles
x40,
x20,
x 40,
x8,
x6,
x15,
x1
@
+10 secondary dmg in 1/15s
+50% damage
(can't be repaired)
Health: 375
Defense: 28
Base damage: 54
Knockback: 2
Shot time: 24
Distance: 45 tiles
x1,
x1,
x32,
x15,
x10,
x5
@
Health: 420
Defense: 34
Ammo: Cannonball
Base damage: 300
Knockback: 6
Shot time: 45
Distance: 50 tiles
x1,
x1,
x1,
/
x40,
x35,
x7,
x6,
x8,
x16,
x28,
x16
@
+8 defense
thorns buff (10% dmg & +5 Kb)
20% change to not consume ammo, +20% with Ammo Box
(can't fire in less than 10 tiles)
Health: 475
Defense: 42
Ammo: 15 mana/shot
Base damage: 82 (can't crit)
Knockback: 2
Shot time: 120 (2 seconds)
Distance: between 10-54 tiles
x1,
x1,
x2,
/
x35,
x20,
x40,
x8,
x9,
x15,
x15,
x1
@
(old)
Health: 420
Defense: 36
Ammo: Gel
Base damage: 64
Knockback: 0.3
Shot time: 30
Distance: between 2-50 tiles
x1,
x1,
x1,
/
x40,
x40,
x8,
x9,
x8,
x20
@
+8 defense
thorns buff (50% dmg & +5 Kb)
Health: 450
Defense: 38
Base damage: 60
Knockback: 5
Shot time: 30
Distance: between 2-50 tiles
x1,
x1,
/
x40,
x50,
x10,
x9,
x6,
x15
@
+8 defense
thorns buff (50% dmg & +5 Kb)
20% change to not consume ammo, +20% with Ammo Box
- Can rotate & shoot automatically
- Use ammo from player inventory or a neaby chest
- Some turrets have rotation limit
- Max 15 turrets can be spawned per world
- Turrets have their own health & defense
- Turrets can be damaged and destroyed to item again
- Turrets are affected by some buff potions used by player
- Deployed turrets will appear after rejoin to world (only works in SP)
Due to saving turrets only works in SP, deployed turrets in MP will disappear after rejoin to world
make sure know where are all deployed turrets before play in MP
make sure know where are all deployed turrets before play in MP
Health: 420
Defense: 38
Musket Ball (+7 damage)
Silver Bullet (+9 damage)
Meteor Shot (+9 damage)
Crystal Bullet (+9 damage)
Exploding Bullet (+10 damage)
Cursed Bullet (+12 damage)
Ichor Bullet (+13 damage)
Silver Bullet (+9 damage)
Meteor Shot (+9 damage)
Crystal Bullet (+9 damage)
Exploding Bullet (+10 damage)
Cursed Bullet (+12 damage)
Ichor Bullet (+13 damage)
Base damage: 60 (can't crit)
Knockback: 2
Shot time: 20
Distance: 50 tiles
@
Sentry level 2 is a "non-permanent" upgrade.
Health: 500
Defense: 50
Base damage: 120 (can't crit)
Shot time: 10
Distance: 60 tiles
Need 50 metal points (MP) to be upgraded.
/
+
= +7 MP
/
+
= +9 MP
/
+
= +11 MP
/
+
= +13 MP
/
+
= +15 MP
Health: 500
Defense: 50
Base damage: 120 (can't crit)
Shot time: 10
Distance: 60 tiles
Need 50 metal points (MP) to be upgraded.
Health: 350
Defense: 30
Musket Ball (+7 damage)
Silver Bullet (+9 damage)
Meteor Shot (+9 damage)
Crystal Bullet (+9 damage)
Exploding Bullet (+10 damage)
Cursed Bullet (+12 damage)
Ichor Bullet (+13 damage)
Silver Bullet (+9 damage)
Meteor Shot (+9 damage)
Crystal Bullet (+9 damage)
Exploding Bullet (+10 damage)
Cursed Bullet (+12 damage)
Ichor Bullet (+13 damage)
Base damage: 45
Knockback: 5.25
Shot time: 35
Distance: 45 tiles
@
Health: 380
Defense: 35
Ammo: 1 mana/hit
Base damage: 35 in 1/7.5s (can't crit)
Knockback: 0 (10 if touch)
Shot time: 4
Distance: 40 tiles
@
Attacking (old)
Health: 375
Defense: 28
Wooden Arrow (+5 damage)
Flaming Arrow (+7 damage)
Unholy Arrow (+12 damage)
Jesters Arrow (+10 damage)
Hellfire Arrow (+13 damage)
Holy Arrow (+13 damage)
Cursed Arrow (+17 damage)
Flaming Arrow (+7 damage)
Unholy Arrow (+12 damage)
Jesters Arrow (+10 damage)
Hellfire Arrow (+13 damage)
Holy Arrow (+13 damage)
Cursed Arrow (+17 damage)
Base damage: 54
Knockback: 2
Shot time: 24
Distance: 45 tiles
@
Attacking (old)
+12 defense & thorns effect with Dryad's blessing (50% dmg & +5 Kb)
+50% damage and arrows speed
20% change to not consume ammo, +20% with Ammo Box
Health: 420
Defense: 34
Ammo: Cannonball
Base damage: 300
Knockback: 6
Shot time: 45
Distance: 50 tiles
@
Health: 475
Defense: 42
Ammo: 15 mana/shot
Base damage: 82 (can't crit)
Knockback: 2
Shot time: 120 (2 seconds)
Distance: between 10-54 tiles
@
Health: 420
Defense: 36
Ammo: Gel
Base damage: 64
Knockback: 0.3
Shot time: 30
Distance: between 2-50 tiles
@
Not available.
Health: 450
Defense: 38
Rocket I (+40 dmg)
Rocket III (+65 dmg)
Rocket III (+65 dmg)
Base damage: 60
Knockback: 5
Shot time: 30
Distance: between 2-50 tiles
@
Not available.
- In MP, If you rejoin to world, deployed turrets head will disappear.
- Basically this mod don't works properly in MP.
- Basically this mod don't works properly in MP.
- If you put a dummy near turrets, these will shoot to it.
- Wooden Repeater don't use ammo from chests if are facing to left.
- Sometimes turrets crashes (like picked by a pickaxe) when they are in a heavy battle and have low health.
- All turrets are a bit inaccurate when shooting at small enemies (like Pinky Slimes)
- Wooden Repeater don't use ammo from chests if are facing to left.
- Sometimes turrets crashes (like picked by a pickaxe) when they are in a heavy battle and have low health.
- All turrets are a bit inaccurate when shooting at small enemies (like Pinky Slimes)
v1.0 - First release.
v1.1 - Minor tweaks & new turret introduced.
v1.2 - Turrets re-sprited.
v1.2.1 - Minor changes & new turret introduced.
v1.2.2 - Better aim for turrets & fixed "duplicated item" bug in MP.
v1.2.3 - Health to turrets introduced.
v1.2.4 - Minor fixes & changes.
- Defense to turrets introduced.
- 2 turrets introduced.
- New item introduced.
v1.2.5 - Minor changes, turrets are affected by buff potions.
v1.2.6 - Minor fixes & major changes.
- "only one per type" spawn limit lifted.
- Turrets can use ammo from a nearby chest.
- New turret introduced.
v1.2.7 - Minor MP fixes & major changes, this update is more for fix bugs.
- TF2 Sentry Gun can be upgraded (no permanently) to lvl 2 with Engie's Wrench using materials.
- Turrets can use multiple ammo. (will use from chests first if are nearby)
- Turrets re-sprited.
- Fixed a bug in MP.
v1.2.8.0 - New mechanics, minor fixes & major changes.
- Introduced a buff which can show any deployed or standby turret
- Spawn limit extended to 15 per world
- Major sprites changes
- Major recipes changes
- Turrets stats and buff effects changes
- 2 turrets introduced (flamethrower & rocket launcher)
- Engie's Wrench can use more type of ores for repair turrets
- Sentry, Musket & Repeater turrets can use more type of ammo
- Deployed turrets will appear after rejoin to world (only works in SP)
v1.1 - Minor tweaks & new turret introduced.
v1.2 - Turrets re-sprited.
v1.2.1 - Minor changes & new turret introduced.
v1.2.2 - Better aim for turrets & fixed "duplicated item" bug in MP.
v1.2.3 - Health to turrets introduced.
v1.2.4 - Minor fixes & changes.
- Defense to turrets introduced.
- 2 turrets introduced.
- New item introduced.
v1.2.5 - Minor changes, turrets are affected by buff potions.
v1.2.6 - Minor fixes & major changes.
- "only one per type" spawn limit lifted.
- Turrets can use ammo from a nearby chest.
- New turret introduced.
v1.2.7 - Minor MP fixes & major changes, this update is more for fix bugs.
- TF2 Sentry Gun can be upgraded (no permanently) to lvl 2 with Engie's Wrench using materials.
- Turrets can use multiple ammo. (will use from chests first if are nearby)
- Turrets re-sprited.
- Fixed a bug in MP.
v1.2.8.0 - New mechanics, minor fixes & major changes.
- Introduced a buff which can show any deployed or standby turret
- Spawn limit extended to 15 per world
- Major sprites changes
- Major recipes changes
- Turrets stats and buff effects changes
- 2 turrets introduced (flamethrower & rocket launcher)
- Engie's Wrench can use more type of ores for repair turrets
- Sentry, Musket & Repeater turrets can use more type of ammo
- Deployed turrets will appear after rejoin to world (only works in SP)
1.2.8.1-9.0 - Minor fixes & changes
- Introducing a dispenser which grants health, ammo and metal (for repair/upgrade turrets) to friendly players (will heal friendly NPCs too)
- Introducing a ceiling gun turret-type which are fast but inaccurate
(with "ceiling" I mean it can be deployed in roof)
- Reworking in Rocket Launcher turret, this update will make the turret shoot homing rockets, but will slow shot time and speed
(note: I will make this balance update due to the turret is hard to craft)
- Trying to fix MP issues.
- More in testing
- Introducing a dispenser which grants health, ammo and metal (for repair/upgrade turrets) to friendly players (will heal friendly NPCs too)
- Introducing a ceiling gun turret-type which are fast but inaccurate
(with "ceiling" I mean it can be deployed in roof)
- Reworking in Rocket Launcher turret, this update will make the turret shoot homing rockets, but will slow shot time and speed
(note: I will make this balance update due to the turret is hard to craft)
- Trying to fix MP issues.
- More in testing
Relogic team
for made this great game.
tModLoader team
without their work, mods can't live.
to SinCostan
for his really helpful Projectile tutorials.
to jopojelly
for help me alot with Tile related things.
to Jofairden
for his useful tutorials.
to coyotekins
for help me testing my mod.
Discord Help:
to DarkLight for help me with ConsumeItem method
(useful for using ammo)
to jopojelly for help me with detect a chest within a certain distance
using Vector2.Distance
for made this great game.
tModLoader team
without their work, mods can't live.
to SinCostan
for his really helpful Projectile tutorials.
to jopojelly
for help me alot with Tile related things.
to Jofairden
for his useful tutorials.
to coyotekins
for help me testing my mod.
Discord Help:
to DarkLight for help me with ConsumeItem method
(useful for using ammo)
to jopojelly for help me with detect a chest within a certain distance
using Vector2.Distance
Attachments
Last edited: