Garry's Mod

Garry's Mod

71 ratings
(BUGGY) Pupil reaction to light recreation (LUA ONLY)
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: ServerContent
Addon Tags: Roleplay, Realism
File Size
Posted
878.000 B
Mar 26 @ 8:22pm
1 Change Note ( view )

Subscribe to download
(BUGGY) Pupil reaction to light recreation (LUA ONLY)

Description
aw crap, pupils only react if they have the same eye materials as the player.
if you have gman playermodel, all gman models work but if you play as another model, gman pupils don't react, they just stay the same shape.

I'm not a coder. I don't know how to edit code so it works for every player.



This mod recreates the lua code seen in TIMON_Z1535's video. the code seen in the video doesn't work and needed line 14 to be swaped after line 16.
This mod doesn't replace the eye materials.
This mod only tracks local player position and not the model's own.
30 Comments
Whynotll83  [author] May 20 @ 1:33pm 
@GreatStuffGary
eyerefract.
GreatStuffGary May 20 @ 11:50am 
Is this for Eyes or EyeRefract ?
Qu4r4ntine Apr 27 @ 8:12am 
works with NPCs i think and ragdolls
Lollita Rose Mar 31 @ 12:49pm 
does this work with ragdolls or is it only for playermodels?? any answer?
Nephrite Harmony Mar 31 @ 12:38pm 
this has potential to be used in tandem with drug mods, very interesting
This realism done gon' too far 😭
googlyboi135 Mar 30 @ 8:27pm 
ultra realism mfs when their game doesnt emulate real life down to every atom :steamsad: :steamskull:
w1ndy64 Mar 29 @ 1:32pm 
me when im off the zaza:
coleyalexandra Mar 29 @ 9:25am 
Just a random question, are you planning on making an adon (or however it is spelt) that allows the player to select the dilation of the pupils on any eye? (e.g. Large dilation on one eye, small on the other.)
2B Mar 29 @ 8:07am 
this is one of those mods You'll only find here in Gmod.

pretty cool