Scripts / Medicstation

Author
Message
Fane
12
Years of Service
User Offline
Joined: 9th May 2012
Location: Deutschland
Posted: 24th Jan 2014 21:49
I write a script that imitate a medicstation like in Half Life. Because I have no object which looks like a medicstation I took some chips for it with a quantity value of 10.



HP = quantity value * capacity







Have fun
PM
almightyhood
11
Years of Service
User Offline
Joined: 9th Oct 2013
Location:
Posted: 25th Jan 2014 03:48
this is going to sounds silly but, whats it do just heal you? never played any of the half life games

have fun stay safe

hood
PM
Fane
12
Years of Service
User Offline
Joined: 9th May 2012
Location: Deutschland
Posted: 25th Jan 2014 06:41 Edited at: 25th Jan 2014 06:41
Yes its only heal you. A medicstation have a certain capacity of health and you can take some of this or all.

See this video at 11:00 http://www.youtube.com/watch?v=rdNB6IDEp-k
PM
Racing Brain Games
10
Years of Service
User Offline
Joined: 12th Jan 2014
Location:
Posted: 25th Jan 2014 13:29
great script! thanks dude! I thimk the mods should start collating scripts (with permission of coders) and setup a wiki/thread for all the custom written scripts as i can see this getting big!

Racing Brain Entertainment.

All or Nothing.
AuShadow
GameGuru TGC Backer
11
Years of Service
User Offline
Joined: 2nd Dec 2013
Location: Australia
Posted: 26th Jan 2014 07:37
yeah i am starting a wiki and want to re-post all these scripts there but with permission from the creators , or if anyone wants to post there its editable by the public

Just a hobbyist but hey putting together a FPSC Reloaded wiki with links to mods, effects and tutorials, made it fully public so anyone can edit it if anyone wants to help out anyway, here's the link,,,, very basic atm



http://fpscrresource.wikispaces.com/home
Fane
12
Years of Service
User Offline
Joined: 9th May 2012
Location: Deutschland
Posted: 26th Jan 2014 11:25
I would open a new topic for Wiki.
PM
AuShadow
GameGuru TGC Backer
11
Years of Service
User Offline
Joined: 2nd Dec 2013
Location: Australia
Posted: 26th Jan 2014 23:40
Have been thinking on this a bit and I wonder if it would be possible to script a med station so that it could read the player health value and if less then say 500, it could work out how much health needed to be added to heal up to 500 only and so if you tried to use it again you would get "health full" error,



I.e. if player health <500

player health = 375

Health to add = (500-375)

Add player health = 125

Else

Prompt "health full"



Obviously not written there as proper code just my line of thought, just so players can't overcharge their health

Just a hobbyist but hey putting together a FPSC Reloaded wiki with links to mods, effects and tutorials, made it fully public so anyone can edit it if anyone wants to help out anyway, here's the link,,,, very basic atm



http://fpscrresource.wikispaces.com/home
Fane
12
Years of Service
User Offline
Joined: 9th May 2012
Location: Deutschland
Posted: 27th Jan 2014 09:35
I think about that too but I donĀ“t find a possibility to do that. If I make a var called player_health = 500; then its only a var not the real player health. So if you get shot and loose 100 HP the var will be still 500. Maybe someone else have an idea?
PM
AuShadow
GameGuru TGC Backer
11
Years of Service
User Offline
Joined: 2nd Dec 2013
Location: Australia
Posted: 27th Jan 2014 09:36
yeah well hopefully a function gets added soon to read player health

Just a hobbyist but hey putting together a FPSC Reloaded wiki with links to mods, effects and tutorials, made it fully public so anyone can edit it if anyone wants to help out anyway, here's the link,,,, very basic atm



http://fpscrresource.wikispaces.com/home
BarZaTTacKS
10
Years of Service
User Offline
Joined: 3rd Feb 2014
Location:
Posted: 12th Feb 2014 15:45
This is a great script to have, thanks!



One issue I am having is it keeps saying the medic station is empty. I kept changing the capacity but nothing works. Any suggestions?
PM
d4rk001
10
Years of Service
User Offline
Joined: 4th May 2014
Location:
Posted: 9th May 2014 02:31
nice!
PM
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 9th May 2014 18:28
Quote: "This is a great script to have, thanks!



One issue I am having is it keeps saying the medic station is empty. I kept changing the capacity but nothing works. Any suggestions? "




updated the script so it'll work correctly for you now



life's one big game

windows vista ultimate

i5 @3.3ghz, 4gb ram, geforce gtx460, directx 11

Login to post a reply

Server time is: 2024-12-22 01:12:05
Your offset time is: 2024-12-22 01:12:05