Skip to content

Conversation

@jackflakboy
Copy link

@jackflakboy jackflakboy commented Aug 29, 2025

Added:
-Grenadiers - Combine SMG units which cannot shoot and instead throw grenades every 3 seconds,
will push enemies until they are in range

-Stalkers - Stalkers with "center mass" targetting and higher than normal damage

-Combine snipers - A combine sniper parented to a rebel npc

-Aegis shield troopers - Combine SMG units with a shield that blocks enemy bullets and lets friendly bullets through

-Rollermines - Rollermines that can be shot and die after 90 seconds automatically

-Half life 2 hunters

-Half life 2 antlion worker (acid spitters)

-Antlion guards and manhacks now have their own spawn function because I broke their death timers somehow (I didn't touch it they just stopped working idk what happened)

-Descriptions for new mobs
-Network string to display aegis shield trooper hit effect
-Fix for antlion workers not being defined in NPC list (probably not needed if half-life 2 is legitimately installed)
-gm_sts_particles map particle file for hunters and antlion workers (probably not needed if half life 2 is legitimately installed)

  • AddTeamIndicator function to attach team indicators to lua mobs, this uses a point_template on the map to template the team indicators. This point_template can be located in a new room on the map near the exist team mob rooms
  • nofriendlyfire true/false console command to toggle mob friendly fire
  • FindNearestEnemy function for use in lua mob behavior
  • Custom shield entity for aegis shield troopers. This isn't necessary but it's nicer to look at in the code

Changed:
-The unit spawn behavior was modified to handle mobs with custom spawn functions. If a mob has a spawn function defined,
it will use that to spawn itself instead of a map template

  • testing.lua was also modified to handle mobs with custom spawn functions
  • Damage triggers on trains now inflict DMG_CLUB instead of DMG_CRUSH because vortigaunts and other units would not die
    from DMG_CRUSH
    Bug fixes:
  • When playing, sudden death would repeatedly teleport players to their spawns, resulting in them being unable to move.
    This has been fixed (hopefully).

Theres probably other small things I'm not remembering

@Bobbyperson
Copy link
Owner

Can you please summarize your changes made to the vmf specifically?

@jackflakboy
Copy link
Author

  • When I was initially experimenting I added some entities to each team's respective mob spawn room, these became unused as I then switched to making new mobs with lua.

  • There is a new room in close proximity to the team mob rooms, all this contains is:
    - an info_target for initial mob spawn positions; this was for debugging as I wanted to know for sure where mobs ended up right after they were created, it's functionally useless (probably)
    -a point_template entity for duplicating team indicators named "team_indicator_templator"; the attach_team_indicator function code looks for this name specifically
    -an initial team indicator brush for the point_template entity to duplicate

  • Changed the damage type of the damage triggers on each of the trains on the train map to DMG_CLUB instead of DMG_CRUSH

I was fumbling about like a buffoon in Hammer ++, and I'm pretty sure I inadvertently broke the mob death timers somehow. It would probably be best if the VMF in the update branch was not directly used at all, and the changes just be re-made in the original VMF

@Bobbyperson Bobbyperson changed the title Update branch Update to add handful of new units! Sep 26, 2025
This content is all included in base Garry's Mod now, so no need to create a toggle.
This might be a preferred playstyle for some people
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants