Making func_recharge/healthcharger charg Created 15 years ago2009-02-20 20:29:21 UTC by Rory Rory

Created 15 years ago2009-02-20 20:29:21 UTC by Rory Rory

Posted 15 years ago2009-02-20 20:29:21 UTC Post #263053
How do you make those func's charge more than like 30?

After you charge your armor up to 30, it's depleted for like half a freakin' hour.

There's maps I've played where they'll do about 200 before depleting.

I've looked and looked and lookedand lookedand lookedand lookedand lookedand lookedand lookedand lookedand lookedand lookedand lookedand lookedand lookedand lookedand lookedand lookedand lookedand lookedand lookedand lookedand lookedand lookedand lookedand lookedand lookedand lookedand looked and LOOKED and never found ANYTHING on how to do this, except for Half-Life 2. Kinda funny when you put "Half Life 1 Deathmatch" and all of your results are HL2.
Posted 15 years ago2009-02-20 21:10:34 UTC Post #263054
If I recall correctly you have to alter the skill.cfg file.

Actually, that could be for mods...
monster_urby monster_urbyGoldsourcerer
Posted 15 years ago2009-02-21 03:43:06 UTC Post #263062
It works for some maps I downloaded back when half-life was ran through WAN.

Those maps they'll do like 120 before dieing, I switch to my map, and then it's back to 30.
Posted 15 years ago2009-02-21 05:28:42 UTC Post #263063
i remember that the ones in dm give 30 and sp give 75, thats all i've ever experienced
Jessie JessieTrans Rights <3
Posted 15 years ago2009-02-21 10:15:22 UTC Post #263071
Its all defined in the skill.cfg file and is based on the selected difficulty level. Here's the HEALTH/SUIT section:

// HEALTH/SUIT CHARGE DISTRIBUTION
sk_suitcharger1 "75"
sk_suitcharger2 "50"
sk_suitcharger3 "35"

sk_battery1 "15"
sk_battery2 "15"
sk_battery3 "10"

sk_healthcharger1 "50"
sk_healthcharger2 "40"
sk_healthcharger3 "25"

sk_healthkit1 "15"
sk_healthkit2 "15"
sk_healthkit3 "10"

sk_scientist_heal1 "25"
sk_scientist_heal2 "25"
sk_scientist_heal3 "25"

Now don't just copy that and paste it into a new cfg file.
Making changes to the skill.cfg require you to send the cfg file with the final bsp, if you're planning to release your map to the public.

I don't recommend making changes to this file because it affects the health and suit charges in every level that you (and everyone else) play.
Posted 15 years ago2009-02-21 17:35:18 UTC Post #263091
what about the difference for deathmatch? they only recharge 30, which is none of those numbers. (unless they have changed things since WON)
Jessie JessieTrans Rights <3
Posted 15 years ago2009-02-21 17:59:22 UTC Post #263093
That is probably hardcoded. Nothing you can do about it.
Posted 15 years ago2009-02-24 07:13:26 UTC Post #263192
"That is probably hardcoded. Nothing you can do about it."

Except dive into the code, of course... ;-) If you do that, you'll find the value in dlls/multiplay_gamerules.cpp. (The weird thing is, multiplay_gamerules overrides the value of "suitchargerCapacity" to 30, but says nothing about "healthchargerCapacity"; the latter gets its value, according to gamerules.cpp, from the CFG file (apparently at skill level 1, 'cos you get 50 from them...)

If you wanted to dive into the code, it shouldn't be too difficult to add a "Max charge" value to your in-game funcs so that you can define them on a per-map (or even per-location) basis. Hmm, that has possibilities... :-)
You must be logged in to post a response.