Main and only file of the Stop Breaking My Freaking Wood plugin, which makes wooden props undamageable once the map has loaded.

On the server its ClockworkInitPostEntity hook creates a filter_activator_name damage filter named woodnorris and applies it to every non-player entity whose model name contains wood, table, bench, chair, box, cardboard or pallet.

Summary

Hooks

Called after Catwork has loaded all map entities; gives wooden props a damage filter.

Hooks

PLUGIN:ClockworkInitPostEntity()

shared gamemodes/cwhl2rp/plugins/chuck_woodnis/plugin/sh_plugin.lua:13

Implements hook ClockworkInitPostEntity

Called after Catwork has loaded all map entities; gives wooden props a damage filter.

One second later the server creates a filter_activator_name entity named woodnorris and applies it to every non-player entity whose model name contains wood, table, bench, chair, box, cardboard or pallet.

Defined in