Garry's Mod
129 ψήφοι
Scrap Turret
   
Βραβείο
Αγαπημένο
Αγαπημένο
Μη αγαπημένο
Content Type: Addon
Addon Type: NPC
Addon Tags: Fun
Μέγεθος αρχείου
Αναρτήθηκε
Ενημερώθηκε
1.714 MB
3 Μαρ 2019, 16:29
25 Ιουλ 2019, 9:25
13 σημειώσεις αλλαγών ( προβολή )

Συνδρομή για λήψη
Scrap Turret

ΠΕΡΙΓΡΑΦΗ
A simple turret made from scraps that shoots at bad guys.


Disclaimers ────────────────────────────────────

This addon requires Counter-Strike: Source, Half-Life 2 and Half-Life 2: Episode Two game contents.

This addon is currently incompatible with saves.

This addon is still unfinished and hasn't been thoroughly tested. If you find a bug, please write it in the comments with the steps to reproduce said bug, thank you.


Questions ─────────────────────────────────────

Q: How do I spawn a turret?
A: Q Menu 🡒 Entities 🡒 Scrap Turret

Q: How do I replenish a turret's ammo / health?
A: Spawn an "Ammo Box" / "Repair Kit" and touch the turret with it.

Q: How does the turret decide if an entity is an enemy?
A: It looks at the relationship of said entity with the owner of the turret (which currently is whoever spawns it) and uses that to determine if the entity should be considered an enemy or not. Basically, if an entity wants to kill you, the turret will want to kill that entity.

Q: How does the turret index thing work?
A: Since there could be more than one turret spawned at the same time, the turret index allows you to specify to which turret the command should be sent to. Look at the back of a turret to see it's index.


Legend ───────────────────────────────────────




Console commands ───────────────────────────────

Ammo
  • scrap_turret_set_ammo turret_index integer_value
  • scrap_turret_set_ammo_max turret_index integer_value
Cheats
  • scrap_turret_set_ammo_infinite turret_index boolean_value
  • scrap_turret_set_god_mode turret_index boolean_value
Damage
  • scrap_turret_set_damage turret_index integer_value
Health
  • scrap_turret_set_health turret_index integer_value
  • scrap_turret_set_healtht_max turret_index integer_value
Magazine
  • scrap_turret_set_magazine turret_index integer_value
  • scrap_turret_set_magazine_max turret_index integer_value
  • scrap_turret_set_direct_feed turret_index boolean_value
Photo mode
  • scrap_turret_set_photo_mode turret_index integer_value
Shield
  • scrap_turret_set_shield turret_index integer_value
  • scrap_turret_set_shield_max turret_index integer_value


Known bugs ───────────────────────────────────

  • Shadows sometimes don't render properly
  • When attacked by manhacks or similar enemies, the whole turret rotates
  • The turret shoots intermittently at non-humanoid enemies
Δημοφιλείς συζητήσεις ΠΡΟΒΟΛΗ ΟΛΩΝ (1)
0
19 Σεπ 2021, 8:37
not multiplayer compatible
the nano that does stuff
49 σχόλια
YEETER9000 12 Απρ, 20:11 
yeah... this thing is so broken it crashes my game, I don't even get to spawn it, I install the mod and load a map, and crash in the loading screen
P3 25 Ιαν 2023, 13:48 
[Scrap Turret] Trying to remove server entity scrap_turret_head#182 on client!
1. Function - lua/entities/scrap_turret_base/shared.lua:30
2. v - lua/includes/extensions/entity.lua:146
3. unknown - lua/includes/modules/hook.lua:96

when undo
TheEnterprise 22 Νοε 2022, 22:14 
is this mod DEAD???
NextKuromeThe76Soldier 14 Μαρ 2021, 6:52 
the muzzleflash is a bit too large, and it makes error when undo

[ERROR] Trying to remove server entity scrap_turret_head#520 on client!
1. Function - lua/entities/scrap_turret_base/shared.lua:30
2. v - lua/includes/extensions/entity.lua:146
3. unknown - lua/includes/modules/hook.lua:84

also could you make it work with nextbots?
BloodWraith42 10 Ιαν 2021, 11:58 
the mod is great and for a while worked fine but suddenly the turrets muzzle flash is the is like 100 times bigger than it was before. making the muzzle flash bigger than the turret itself. while initially hilarious it has proved an annoying and persistent bug.
ShubDrub 26 Οκτ 2020, 10:37 
[Scrap Turret] Trying to remove server entity scrap_turret_head#211 on client!

1. Function - lua/entities/scrap_turret_base/shared.lua:30
2. v - lua/includes/extensions/entity.lua:134
3. unknown - lua/includes/modules/hook.lua:84
THE EMPEROR'S STRONGEST SOLDIER 10 Οκτ 2020, 13:24 
Max the Murderer I circumvented it by using the gravity gun and tossing the ammo/repair at it
Awkor  [Δημιουργός] 3 Σεπ 2019, 0:55 
Unfortunately I was unable to reproduce the error on my machine, maybe it's a mod conflict? I don't really know why it wouldn't even show up the menu.
Awkor  [Δημιουργός] 2 Σεπ 2019, 10:44 
There's a list on the left when you select the "Entities" tab, on that list there should be an entry named "Scrap Turret" with all the entities of this addon.
rats 29 Αυγ 2019, 16:37 
i cant find it in entities