Skip to content
View in the app

A better way to browse. Learn more.

Learn more

knife-demotion-rule/README.txt

README.txt
30 lines · 1.7 KB · Text
Raw
Knife Demotion Rule (olds.ro workshop card IDEA-56448D2EEAB01A15) - Arms Race add-on
Copyright (C) 2026 daemon (olds.ro). GPL-3.0-or-later.

A knife kill pushes the victim back one weapon level; a victim on level 1
loses nothing. The killer keeps their level and gets olds_ardemote_progress
progress points toward the next one instead of what the core gives for a kill.
Both players see a short director HUD line (set_dhudmessage) and the victim
hears the stock weapons/knife_hit1.wav.

A knife kill: the killer's active item is the knife
(get_member(attacker, m_pActiveItem), hooked in RG_CBasePlayer_Killed) and the
killing blow came straight from the killer (not a grenade or other entity, not
a blast). Grenade and gun kills are left to the core.

Arms Race core natives used (a native filter lets the plugin load without them):
  ar_get_level(id), ar_set_level(id, level)          required; without them the plugin is idle
  ar_get_progress(id), ar_set_progress(id, points)   optional; without them no progress point
The core handles the kill first; 0.1 s later the plugin puts the killer's level
back to what it was before the kill, adds the progress point(s) and demotes the
victim. When the progress becomes a level is the core's business.
The director HUD has no channels, so it never overwrites the core's HUD
channels (no sync object is needed).

Cvars (configs/plugins/olds_ardemote.cfg):
  olds_ardemote           1   0 = knife kills are normal kills
  olds_ardemote_progress  1   progress points for a knife kill (0-10)

Install: scripting/olds_ardemote.sma (amxxpc 1.10), add olds_ardemote.amxx after
the Arms Race core in plugins.ini, copy data/lang/olds_ardemote.txt.
Needs ReAPI (ReGameDLL_CS). No downloads.

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.