amxx-modding-kit-api-custom-entities

Register custom entity classes with methods and lifecycle hooks for AMX Mod X.

32|4|Updated Mar 23, 2023
One-click install
npx skills add https://github.com/hedgefog/amxx-modding-kit --skill amxx-modding-kit-api-custom-entities
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: amxx-modding-kit-api-custom-entities
Source: https://github.com/hedgefog/amxx-modding-kit/tree/main/.agents/skills/amxx-modding-kit/api/custom-entities
Command: npx skills add https://github.com/hedgefog/amxx-modding-kit --skill amxx-modding-kit-api-custom-entities

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Reusable, well-structured entity implementations reduce boilerplate and errors when adding new game entities in AMX Mod X, enabling consistent patterns and safer plugins.

Core Features & Use Cases

  • OOP-style entity system for defining reusable classes with methods and members
  • Class registration, method binding, and member access patterns for easy extension
  • Hooks and lifecycle integration for spawn, think, touch, and killed events in mods

Quick Start

Define a new entity class, implement its Create and Spawn methods, and register it with the CE_RegisterClass system.

Frequently Asked Questions about amxx-modding-kit-api-custom-entities

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create custom entities in AMX Mod X using OOP?

Custom entities in AMX Mod X are created by defining a reusable class with methods and members, then registering it via the CE_RegisterClass system to handle spawn, think, and touch lifecycle events. This approach reduces boilerplate and ensures safer plugin integration.

What is the Custom Entities API used for in GoldSrc game mods?

The Custom Entities API is used to implement robust, reusable entity implementations like projectiles, pickups, and NPC-like entities in GoldSrc games. It provides class registration, member management, and method binding for consistent OOP-style entity systems.

How do I bind methods and handle member variables for AMX Mod X entities?

Method binding and member access are handled through the Custom Entities API during class registration. You define members within the entity class and implement methods that interact with them, enabling proper initialization and lifecycle management for your game mods.

Can I hook into entity lifecycle events like spawn and killed for Pawn plugins?

Yes, the Custom Entities API supports external hooks for entity lifecycle events including spawn, think, touch, and killed. These hooks allow safe plugin integration and ensure proper initialization, spawning, and destruction flows for custom entities.

Does this entity system work for creating projectiles and NPC-like entities in Half-Life mods?

Yes, the OOP-style entity system is explicitly applicable to projectiles, pickups, and NPC-like entities in GoldSrc games. It covers class registration and safe destruction flows needed for these specific entity types.

Why use an OOP approach for custom entity development in AMX Mod X?

Using an OOP approach for custom entity development reduces boilerplate code and errors when adding new game entities. It establishes consistent patterns for class registration and member handling, resulting in safer and more maintainable plugins.