|
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
|
12-16-2021
, 11:56
Re: [L4D & L4D2] Left 4 DHooks Direct (1.82) [14-Dec-2021]
|
#557
|
Quote:
Originally Posted by xerox8521
Seems the SpawnWitch / SpawnWitchBride callbacks do not fire at all for me.
Tested with 1.82 and L4D_OnSpawnWitch, L4D_OnSpawnWitch_Post, L4D2_OnSpawnWitchBride, L4D2_OnSpawnWitchBride_Post
Edit: Witch is spawned using the natives provided with this plugin.
Game: L4D2
OS: Windows 10
Metamod Version: 1.11.0-dev+1145
Sourcemod Version: 1.10.0.6528
DHooks Version: 2.2.0-detours17
|
Works here. You reloaded the detours or changed map or reloaded left4dhooks after adding the script with the forwards?
Spoiler
PHP Code:
#include <left4dhooks>
public void OnPluginStart() { RegAdminCmd("sm_witch", CmdWitch, ADMFLAG_ROOT); }
public Action CmdWitch(int c, int a) { L4D2_SpawnWitch(view_as<float>({1.0, 1.0, 1.0}), view_as<float>({1.0, 1.0, 1.0})); L4D2_SpawnWitchBride(view_as<float>({1.0, 1.0, 1.0}), view_as<float>({1.0, 1.0, 1.0})); return Plugin_Handled; }
public Action L4D_OnSpawnWitch(const float vector[3], const float qangle[3]) { PrintToServer("L4D_OnSpawnWitch"); }
public void L4D_OnSpawnWitch_Post(int entity, const float vector[3], const float qangle[3]) { PrintToServer("L4D_OnSpawnWitch_Post"); }
public Action L4D2_OnSpawnWitchBride(const float vector[3], const float qangle[3]) { PrintToServer("L4D2_OnSpawnWitchBride"); }
public void L4D2_OnSpawnWitchBride_Post(int entity, const float vector[3], const float qangle[3]) { PrintToServer("L4D2_OnSpawnWitchBride_Post"); }
Quote:
sm_witch
L4D_OnSpawnWitch
L4D_OnSpawnWitch_Post
L4D2_OnSpawnWitchBride
L4D2_OnSpawnWitchBride_Post
|
Quote:
sm_l4dd_detours
1 FORCED DETOUR > L4D2_OnClientDisableAddons (CBaseServer::FillServerInfo)
...
14 witch_test.smx > L4D_OnSpawnWitch (ZombieManager::SpawnWitch)
15 witch_test.smx > L4D_OnSpawnWitch_Post (ZombieManager::SpawnWitch)
16 witch_test.smx > L4D2_OnSpawnWitchBride (ZombieManager::SpawnWitchBride)
17 witch_test.smx > L4D2_OnSpawnWitchBride_Post (ZombieManager::SpawnWitchBride)
|
__________________
Last edited by Silvers; 12-16-2021 at 11:58.
|
|
|
|