Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / (1.20) Flashlight as health indicator.

Author
Message
jaropolk14
13
Years of Service
User Offline
Joined: 3rd Jul 2011
Location: Russia, Rostov-on-Don
Posted: 17th Aug 2013 16:58 Edited at: 17th Aug 2013 17:24
Simple but nice-looking script - using flashlight as health indicator. Works with FPSC 1.20.16 (sorry, I don't remember in which beta flashlight was added). For earlier versions of FPSC you may use level ambience instead of flashlight.

http://www.youtube.com/watch?v=X_dV8EZHZxs


Quote: ";Artificial Intelligence Script

;Header Flashlight as health indicator

:state=0:FlashLight=1
:State=0:FlashLightRange=300
:State=0:FlashLightRed=250,FlashLightGreen=250,FlashLightBlue=250,state=1

:State=1:plrhealthequal=100:FlashLightRed=250,FlashLightGreen=200,FlashLightBlue=250,state=1
:State=1,plrhealthless=100,plrhealthgreater=90:FlashLightRed=250,FlashLightGreen=225,FlashLightBlue=225,state=2
:State=1,plrhealthless=91,plrhealthgreater=80:FlashLightRed=250,FlashLightGreen=200,FlashLightBlue=200,state=2
:State=1,plrhealthless=81,plrhealthgreater=70:FlashLightRed=250,FlashLightGreen=175,FlashLightBlue=175,state=2
:State=1,plrhealthless=71,plrhealthgreater=60:FlashLightRed=250,FlashLightGreen=150,FlashLightBlue=150,state=2
:State=1,plrhealthless=61,plrhealthgreater=50:FlashLightRed=250,FlashLightGreen=125,FlashLightBlue=125,state=2
:State=1,plrhealthless=51,plrhealthgreater=40:FlashLightRed=250,FlashLightGreen=100,FlashLightBlue=100,state=2
:State=1,plrhealthless=41,plrhealthgreater=30:FlashLightRed=250,FlashLightGreen=75,FlashLightBlue=75,state=2
:State=1,plrhealthless=31,plrhealthgreater=20:FlashLightRed=250,FlashLightGreen=50,FlashLightBlue=50,state=2
:State=1,plrhealthless=21,plrhealthgreater=10:FlashLightRed=250,FlashLightGreen=25,FlashLightBlue=25,state=2
:State=1,plrhealthless=11,plrhealthgreater=0:FlashLightRed=250,FlashLightGreen=0,FlashLightBlue=0,state=2

:state=2:state=0

;End of Script"
Seth Black
FPSC Reloaded TGC Backer
19
Years of Service
User Offline
Joined: 22nd Feb 2005
Location: Pittsburgh, PA
Posted: 17th Aug 2013 17:21
Nifty & Fun.



ncmako
12
Years of Service
User Offline
Joined: 19th Feb 2012
Location: Hendersonville,NC
Posted: 17th Aug 2013 20:41
Now that's different, nice work

Login to post a reply

Server time is: 2024-11-23 11:22:21
Your offset time is: 2024-11-23 11:22:21