View Single Post
Author Message
kadet.89
Veteran Member
Join Date: Nov 2012
Location: Serbia
Old 08-04-2015 , 08:05   [ANY] HL2 items (1.5.2)
Reply With Quote #1



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
Attached Images
File Type: jpg logo.jpg (93.5 KB, 2444 views)
Attached Files
File Type: 7z loader.7z (3.8 KB, 297 views)
File Type: 7z gamedata.7z (2.7 KB, 309 views)
File Type: dll hlitems.ext.dll (937.5 KB, 494 views)
File Type: 7z source.7z (98.2 KB, 381 views)
File Type: 7z box6.bsp.7z (5.0 KB, 226 views)
File Type: 7z box6.vmf.7z (1.9 KB, 230 views)
File Type: txt linux_compiling.txt (1.9 KB, 480 views)
File Type: 7z AMBuildScript.7z (4.9 KB, 220 views)

Last edited by kadet.89; 09-19-2016 at 11:42.
kadet.89 is offline
Send a message via Skype™ to kadet.89