After trying to create this for several days and only creating barely-recognizable piles of LUA errors, I finally decided that I might need more help.
The "Healing Plate"
A circular plate entity. When a player (optional: Or an NPC) sets foot on the "Healing Plate" they begin to recover one health every tenth of a second. The Plate emits particles while doing so (Particles can be whatever you feel like, whatever is most convenient, etc. Although I feel TF2 Healsign type particles would be most fitting.)
The Healing Plate never heals the player above 100 hp. (As for NPCs, I don't know if they have varying amounts of health, but if you are bored enough to make it heal NPCs, it should probably not heal them above their maximum.)
My apologies if this is too difficult to be worthwhile. If you do accomplish this, of course, I will use it to achieve higher knowledge of the scripting ways.
EDIT: It appears I made the icon 'Release' not 'Request'. I guess blue things with an RE just seem the same to me.
I took a try at it, you can download it from:
[url=http://www.garrysmod.org/downloads/?a=view&id=121061][img_thumb]http://www.garrysmod.org/img/?t=dll&id=121061[/img_thumb][/url]
It heals Players and NPC's that stand on it.
I couldn't get the TF2 healsign to work, so I used bubbles. hope you like.
[QUOTE=Fantym420;29691141]I took a try at it, you can download it from:
[url=http://www.garrysmod.org/downloads/?a=view&id=121061][img_thumb]http://www.garrysmod.org/img/?t=dll&id=121061[/img_thumb][/url]
It heals Players and NPC's that stand on it.
I couldn't get the TF2 healsign to work, so I used bubbles. hope you like.[/QUOTE]
Most excellent work, good sir. Really quite helpful to learn from, too!
Am I correct in assuming that OBBMax and OBBMin change with the model?
got to thinking about what you asked and tried a few things
[code]
World Min: 5555.1348 9231.9512 4244.1016
World Max: 5472.8696 9178.0127 4397.9604
Local Min: -47.6658 -47.6651 -0.0265
Local Max: 112.1565 7.8029 68.7447
World Min: 5568.4312 9239.0977 4254.9917
World Max: 5477.1348 9191.5830 4395.5132
Local Min: -47.6658 -47.6651 -0.0265
Local Max: 99.0556 4.7743 77.8312
World Min: 5580.2905 9246.0107 4266.6577
World Max: 5481.9126 9203.3682 4392.5469
Local Min: -47.6658 -47.6651 -0.0265
Local Max: 84.8057 3.0523 84.9652
[/code]
Odd it seems that Max changes, but Min does not, but when converted to world coodinates they both change. The coordinates are relative to the entity.
Sorry, you need to Log In to post a reply to this thread.