How calafex/hpw_rewrite works
Harry Potter Wand Rewrite is a Garry’s Mod wand-and-spell addon. The principal gameplay workflow is a player using the wand weapon to invoke a spell, with spell definitions producing in-game effects or entities. The repository also includes spell selection, wand skins, configuration and language/UI support, networking, and book-like entities. The README confirms spell and skin extensibility; because no source excerpts were provided, the graph shows only high-level relationships suggested by the product and tree, not verified internal calls.
Main entry points: spellmanager.lua Spell Manager · weapon_hpwr_stick.lua Wand Weapon · network.lua Networking · skinmanager.lua Skin Manager
Components 18
Wand Gameplay
- Wand Weapon
lua/weapons/weapon_hpwr_stick.lua - Spell Manager
lua/hpwrewrite/spellmanager.lua - Spell Tree
lua/hpwrewrite/spelltree.lua - Spell Entities
lua/entities - Visual Effects
lua/effects
Spell Content
- Spell Definitions
lua/hpwrewrite/spells
UI and Appearance
- Skin Manager
lua/hpwrewrite/skinmanager.lua - Wand Skins
lua/hpwrewrite/skins - Game UI
lua/hpwrewrite/vgui.lua - Options
lua/hpwrewrite/options
Addon Services
- Networking
lua/hpwrewrite/network.lua - Client Messages
lua/hpwrewrite/net/client.lua - Server Messages
lua/hpwrewrite/net/server.lua - Data Manager
lua/hpwrewrite/datamanager.lua - Translations
lua/hpwrewrite/language - Key Bindings
lua/hpwrewrite/binds.lua
Other components
- Player
- Garry’s Mod
Connections 11
- Player → Wand Weapon: uses
- Wand Weapon → Spell Manager: casts through
- Spell Manager → Spell Definitions: dispatches spell
- Spell Manager → Spell Entities: creates entities
- Spell Manager → Visual Effects: triggers effects
- Player → Spell Tree: selects spells
- Wand Weapon → Skin Manager: uses appearance
- Skin Manager → Wand Skins: loads skins
- Garry’s Mod → Wand Weapon: runs addon
- Networking → Client Messages: routes client
- Networking → Server Messages: routes server