Healthkit (like in HL)

Post Reply
greenie
Full Member
Full Member
Posts: 1815
Joined: Sun Nov 21, 2021 4:55 pm
Jucator SA:MP ?: Nu
Nick:: greenie
Jucator CS ?: Nu

Healthkit (like in HL)

Post by greenie »

I wrote that plugin for fun by a request: http://forums.alliedmods.net/showthread.php?t=24832
I tryed to search for similar plugin on this forums and found nothing like this.
So if you like this plugin - enjoy.

Edit:
- tested on CS successfully
- on DOD seems like it didn't work
- not tested on other mods so i mark it as for CS only

Description:
This plugin basically provides an ability to spawn HL healthkits.
If healthkit is collected it would appear again later like in HL.
Note:Engine module required.
Commands:
healthkit_spawn [save] - spawns a healthkit at the origin of a player who typed that command
if "save" argument is specified then origin would be added to the end of the file
$configsdir/maps/<currentmap>.cfg (file would be created if it is not exists)
that would allow to spawn saved healthkits every specific map load
Note: to avoid error create $configsdir/maps folder if it is not exists.

healthkit_load <x> <y> <z> - spawns a healthkit at the specified origin

healthkit_clear - removes all spawned healthkits

Commands access level is ADMIN_CFG (falg "h") can be redefined (#define ACCESS_LEVEL)

plugin
Post Reply

Return to “Fun Stuff”