X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fcommon%2Fimpulses%2Fall.qh;h=d870e6d2c232cf7825a94f46711831e96afc4320;hp=e5a2b7b6019a6bb7309908b51989426b208bdca7;hb=HEAD;hpb=0b81c8ddcc0fd34433e710dbfe2b55afe0d6d7eb diff --git a/qcsrc/common/impulses/all.qh b/qcsrc/common/impulses/all.qh index e5a2b7b60..da13ee4aa 100644 --- a/qcsrc/common/impulses/all.qh +++ b/qcsrc/common/impulses/all.qh @@ -3,6 +3,8 @@ REGISTRY(IMPULSES, 255) REGISTER_REGISTRY(IMPULSES) REGISTRY_SORT(IMPULSES) + +REGISTRY_DEFINE_GET(IMPULSES, NULL) STATIC_INIT(IMPULSES_renumber) { FOREACH(IMPULSES, true, it.m_id = i); @@ -12,6 +14,11 @@ REGISTRY_CHECK(IMPULSES) .void(entity this) impulse_handle; #if defined(CSQC) +void Impulse_Send(entity imp) +{ + localcmd(sprintf("\nimpulse %d\n", imp.impulse)); +} + #define IMPULSE_ALIAS(alias, id) localcmd("\nalias " #alias " \"", id ,"\"\n") #else #define IMPULSE_ALIAS(alias, id)