Garry's Mod

Garry's Mod

880 ratings
Gordon Freeman SmartNPC
2
2
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: NPC
Addon Tags: Roleplay, Realism
File Size
Posted
Updated
27.248 MB
Mar 3, 2019 @ 7:42pm
Feb 4, 2020 @ 9:45pm
11 Change Notes ( view )

Subscribe to download
Gordon Freeman SmartNPC

Description
"Well, Gordon Freeman, and about time too!" - Male Citizen

Well this Mod took a long while to make.
About 2-3 Months to be exact.
This SmartNPC contains over 4,500 lines of code.

WARNING!

This NPC does NOT work with Follower's Mod's Following System. Because of the way I scripted him to do his custom abilities and such, he requires a Name which Follower's Mod replaces with a different one. So you can't have him follow you. But if you do have him follow you, he won't be able to use his abilities until you make him Leave your squad.


This Mod Includes :
---- 1 NPC
---- Located in Humans + Resistance
---- Has a Spawn Icon

NPC Features :

---- Can Use Health Charger ( FIRST NPC to do this )
---- Can Use the Suit Charger ( FIRST NPC to do this )
---- Can shoot Ar2 orbs from the ar2 against enemy Hunters (FIRST Non-Combine, Base Class NPC to do this)
---- Can pick up medkits and vials
---- Can pick up antlion grub nuggets. (Only if health is > 50 and < 100 )
---- Will Squash Grubs to collect them.
---- Spawns with No HEV Suit and needs to pick it up
---- Can pick up armour batteries

---- You can use the ConVar gordon_equipped to spawn Freeman already with his suit, and all his weapons for quickplay.

---- Has an inventory of weapons.
---- Changes weapons depending on enemy's distance from him
---- When using the Crossbow, it will do 100 damage instead of the default 10 Damage.
---- Uses Crossbow for only certain types of enemies.

---- Starts with labcoat and has 50 HP but when puts on HEV Suit, is boosted to 100 HP and can go up to 200 HP for picking up amour batteries
---- If Freeman has a labcoat on and is not holding a weapon and gordon_neutral_to_cops is enabled then metrocops will not be hostile to Freeman.

---- When his HP is 20 or below and sees a medkit or vial, he will SPRINT towards it, even during combat.
---- Reloads weapons faster than normal NPCs.

---- Has grenades
---- Can restock grenades by picking props of grenades or weapon_frag
---- Can also restock grenades by going to a grenade ammo crate. ( Must be a prop_physics )

---- Has Melee attacks. Uses the butt of the gun if the gun uses to hands to hold or uses his fist when using weapons that have 1 hand or no weapon.
---- If he has a crowbar and sees and enemy, he will charge at the enemy up to melee p


---- If he desperately needs a medkit ( at 20 HP or less ) he will leave the Player's Squad to Sprint for that Medkit. ( If it is within range and he sees it )

---- Has Limited Ammo
---- Picks up Ammunition when having none.
---- Puts away weapon when running out of ammo.
---- Pulls out weapon ( if has no current weapon ) after picking up some ammo for that weapon.
---- If an ammo crate is around ( that is a prop_physics ) and needs ammo for that gun from that specifc crate, he will run to it and refill his ammo.
---- If he ran out of ammo for a gun and picked some more up, he will reload the gun to show him 'pulling out an empty gun'.

---- Will not pick up medkits or vials if a player's health ( that he is friendly to ) is lower than his and ai_ignoreplayers is turned off.

---- Is silent and plays no voice death sounds on Death.
---- Has HEV Suit Sounds that periodically play when he preforms a task or updating his status audibly.
---- Can Take Fall Damage if he falls from a high enough point.

---- Citizens (and/or Barney/Alyx) that are not following the player will follow Freeman ( unless gordon_disable_followers is enabled )
---- Citizens will say a quote to tell the player that they are going to follow Freeman.
---- If the global state gordon_precriminal is on, Citizens will not follow Freeman.

--- There is a ConVar (gordon_limit_to_one_free_man) where if you enable it (1) you will only be allowed to have Gordon Spawned Once.
--- The limit resets when Gordon dies. ( So you can respawn him )

--- Has a Custom Name in the Kill Feed for when he kills enemies. (Not for when he dies though. [yet])

ConVars included in this mod :
gordon_equipped
gordon_neutral_to_cops
gordon_disable_followers
gordon_limit_to_one_free_man
gordon_limit_to_one_free_man

Credits :

- Zach88889 :
Scripting the SmartNPC, Ideas, Concepts

- ninjagojosh :
Some ideas for the SmartNPC

- Punk Buster : Suggesting some weapon change conditions

I didn't make it and take no credit for it, they deserve it.

Want to communicate with me? Here is a Discord server that will allow you to chat and discuss bugs and features :

D&Z Modding Discord Server: https://discord.gg/vwy8fnZvwg

tags : Gordon Freeman, NPC, SmartNPC, SNPC, Realism, Not a Nextbot, Advanced NPC, Roleplay, Half-Life, Half Life, Half Life 2
Popular Discussions View All (5)
63
Jun 1, 2023 @ 9:36am
suggestion section.
The Supreme Combine
50
Nov 24, 2022 @ 12:12pm
PINNED: Bug Section.
The Supreme Combine
8
May 4, 2024 @ 1:48am
GOOD Suggestions and not demanding
AriStykes
215 Comments
Obsidian328 Jan 30 @ 6:44pm 
for a super smart npc gordon really seems to love to run directly at enemies, miss every shot, switch to the pistol for no reason, and then die
Kasen Ibaraki Jan 13 @ 9:09am 
You're amazing, Zach!
macawblue λ Jan 10 @ 3:36pm 
gordon freeman rise and shine mr freeman
Metro-Police Dec 30, 2024 @ 5:58pm 
wdym make a playermodel, the required addon litteraly already has one with a npc
jwchav97 Nov 15, 2024 @ 3:08pm 
can we get adrian shephard too?
(yep, seems like reality) Nov 13, 2024 @ 12:22am 
wth does gordon_limit_to_one_free_man do????
NatureDog750 Oct 31, 2024 @ 1:33am 
please make a playermodel:steamthumbsup:
The Combine Oct 11, 2024 @ 7:33pm 
Man you are good making mods, very nice
domgiroux9 Sep 28, 2024 @ 4:07pm 
It says he's in Human/Resistance
Enterfector Sep 14, 2024 @ 1:28pm 
How am I supposed to spawn him? Typing gordon_equipped hasn't been doing anything, and putting a number in front also hasn't spawned any entities.