diff options
| author | salmonik <salmonik@tuta.io> | 2026-11-04 17:51:20 +0100 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-11-04 17:51:20 +0100 |
| commit | 49df428d95a7c443d418d5b7e2a93af599b54f76 (patch) | |
| tree | 604e64048aacc5e2b86f441e03e5e5ab8600bef2 /src/server.cpp | |
| parent | Items: skip the CNetworkArray length header for m_iAmmo/m_hMyWeapons (diff) | |
| download | hl2h-49df428d95a7c443d418d5b7e2a93af599b54f76.tar.gz hl2h-49df428d95a7c443d418d5b7e2a93af599b54f76.zip | |
Add chams
- Hook IVModelRender::DrawModelExecute (VEngineModel016 slot 19) and force
models/debug/debugwhite for NPC models, identified by
ModelRenderInfo_t::entity_index.
- Two passes: MATERIAL_VAR_IGNOREZ through walls, then normal depth, with
IMaterial::ColorModulate for the configured colour; restore the shared
material's flag/colour afterwards.
- Material lookup via the IMaterialSystem list, FindMaterial fallback.
- New Chams feature/card with Through walls and colour; [chams] config.
- Remove the temporary ammo/projectile/fuse diagnostics.
Diffstat (limited to '')
| -rw-r--r-- | src/server.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/server.cpp b/src/server.cpp index 09d198a..bae355e 100644 --- a/src/server.cpp +++ b/src/server.cpp | |||
| @@ -462,14 +462,7 @@ float server_grenade_detonate(int idx) { | |||
| 462 | server_entity_health(idx, nullptr, nullptr, &base); | 462 | server_entity_health(idx, nullptr, nullptr, &base); |
| 463 | if (!base) | 463 | if (!base) |
| 464 | return -1.0f; | 464 | return -1.0f; |
| 465 | float v = *(float *)((uintptr_t)base + g_srv_detonate); | 465 | return *(float *)((uintptr_t)base + g_srv_detonate); |
| 466 | static int logs = 0; | ||
| 467 | if (logs < 8) { | ||
| 468 | logs++; | ||
| 469 | logf("grenade fuse: idx=%d base=%p off=%d value=%.2f", idx, base, | ||
| 470 | g_srv_detonate, v); | ||
| 471 | } | ||
| 472 | return v; | ||
| 473 | } | 466 | } |
| 474 | 467 | ||
| 475 | float server_grenade_radius(int idx) { | 468 | float server_grenade_radius(int idx) { |
