Garry's Mod

Garry's Mod

Modding at its finest
Discover addons, save games, demos, and more, and add them to Garry's Mod with a click of a button. Want to create and share your own creations? Click here to learn how.
Idea: Shadow Player - Hostile NPC
A request for a shadow player. What would a shadow player be?
A shadow player copies the players movements, attacks, HP, and general behavior, even having a shadow version of the players playermodel, along with equipped weapons.


Coding specifics:

Side effects: If one of them takes fall or drowning damage, the player also takes that equal amount of falling / drowning damage.

Why this side effect?
It wouldn't be coded from scratch like a common hostile enemy. It's a direct copy of the players code, with a dark texture added and then an enemy flag put over it and flipped on. You as the player would take fall damage / drowning damage, because it's an exact copy of your player code.
Gmod wouldn't see it as a common hostile enemy or combine NPC or nextbot taking a fall, it would see the player (and it's hostile copy) as taking a fall and deducting the health accordingly from all dark copies and the player.

It's not just trying to mirror you, the game thinks this shadow, to some extent: IS you.

It copies not just your code, but any animations two. You dance? It would also dance.
If you have the ability to jump, climb, sprint swim, vault over things? That two would be copied.
You have a piece of equipment that slows you down? The dark version of yourself also gets affected, slowing or speeding up when the game reads your speed status

All of them run on the same routine; if one of your dark copies is killed, all of them are.

If one voids out on a map? It would also affect you, based on that voids hitbox behavior.

----------------------------------------

Basically this is the longest winded way to say: The Enemy copies your code, always. It was made with a very simple script that is basically a hostile copy of you.

---------------------------------------

This article was inspired by Liamsixx, this request would not be possible without their insights, check them out here and tell them "XDDC from steam recommended you" (if you want to)

https://www.youtube.com/watch?v=f7hNMKBEMMc
Last edited by We go together; 25 Jun @ 10:55am
< >
Showing 1-2 of 2 comments
Catch the citizens, kill them.
Catch the citizens, kill them.
< >
Showing 1-2 of 2 comments
Per page: 1530 50