This extension adds some half life 2 items to the game:
Code:
item_healthcharger (recharges health)
item_suitcharger (recharges armor in CSS,but you can charge anything you want)
item_healthkit ( +25HP)
item_battery ( +10 armor)
item_healthvial ( +10HP)
item_antidote ( does nothig yet)
Cvars:
sk_healthkit 25 (max amount of hp to restore with item_healthkit )
sk_healthcharger 25 (max amount of hp to restore with item_healthcharger )
sk_suitcharger 25 (max amount of armor to restore with item_suitcharger )
sk_suitcharger_citadel 25
sk_suitcharger_citadel_maxarmor 50
KeyValues (properties) and inputs/outputs work fine. But, as hummer does not support these items, all the properties should be specified manually:
Code:
entity
{
"id" "276"
"classname" "item_healthcharger"
"angles" "0 90 0"
connections
{
"OnPlayerUse" "light,Toggle,,0,-1"
}
"origin" "-372 32 89.8277"
}
It works well with my windows server, but, as it's based on the tfdodgeball extension and has got all the necessary signatures and offsets for linux, it should work under linux as well. All the gametype -specific staff has been cut off (except for css armor), the extension should work well with any source engine game
links:
CSS NPC
https://forums.alliedmods.net/showthread.php?t=161331 (they are going to close code.google.com!!)
TFDodgeball
https://forums.alliedmods.net/showthread.php?t=127034
CEntity
https://forums.alliedmods.net/showthread.php?t=87500
TODO:
add item_longjump
add item_item_crate
add *ammo items
add npc_*
Special thanks to asherkin, pRED* and raydan
requirements:
SourceMod 1.7.2
how to use:
1) You can add these entities to your maps directly with the hummer editor
2) If you want to see this entities on the classic maps without recompilation, you may use this extension:
https://forums.alliedmods.net/showthread.php?t=39439
A useful video about signing:
https://www.youtube.com/watch?v=4T03pckoB5g
You can now add any new entity type to the game (including NPC)
Feel free to ask me any questions in this thread