[HL1] Hooking Keyvalue on entities not in gametype
Hello, I am working on a plugin to add more support to my game for maps that were not originally meant for my game, HLDM maps are very popular in TFC as they are open world deathmatches, I am trying to hook all of the weapons that the engine drops (because no equivalent item is in the engine for this game) and implement the closest equivalent I can find.. the problem is, I cant seem to grab any entities other than those that are added to the game (weapon_grenade) and I do know for a fact that these entities are in the map (bsp file contains the entity info)
I am properly hooking the function in plugin_precache and can confirm that it is running, and it even sends my data to the logfile I specified, however it only works for entities that it would normally spawn.. is there any way to achieve what I am trying to do? PHP Code:
PHP Code:
|
Re: [HL1] Hooking Keyvalue on entities not in gametype
Just don't filter key = "classname" and you gonna catch other properties.
|
Re: [HL1] Hooking Keyvalue on entities not in gametype
Quote:
Solution: PHP Code:
|
Re: [HL1] Hooking Keyvalue on entities not in gametype
|
Re: [HL1] Hooking Keyvalue on entities not in gametype
Yes, I am using hldm maps on my server, but my game doesnt have those weapons, I want to grab the info from the keyvalues and spawn the closest equivalent.. for example, weapon_shotgun -> tfc_wpn_supershotgun weapon_rpg -> tfc_wpn_rpg etc.
Please note: these entities are never created as the engine drops them because they do not exist in the game. new question: I am using weapon_handgrenade to give users grenades, but only the first one they pick up disappears from the map, what controls them 'having' the grenade? I have tried many things but havent found anything yet. :/ PHP Code:
|
Re: [HL1] Hooking Keyvalue on entities not in gametype
So, you could use that : http://forums.alliedmods.net/showthread.php?p=1647630
|
| All times are GMT -4. The time now is 23:15. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.