InfinityScript HUD Stuff (Getting game HUD)

InfinityScript plugins for dedicated servers.
User avatar
~Lambder
TeknoSheep
Posts: 448
Joined: Thu Apr 11, 2013 5:40 pm
Location: Meadow.
Contact:

Re: InfinityScript HUD Stuff (Getting game HUD)

Postby ~Lambder » Thu Jun 23, 2016 11:38 am

Just use this.

Code: Select all

        uint32_t GitHudRef(uint16_t _class, uint16_t _entnum)
        {
            return static_cast<uint32_t>((static_cast<uint32_t>(_entnum) << 16) | static_cast<uint32_t>(_class))
        }


or this.

Code: Select all

        public HudElem GitMeinHudElem(ushort @class, ushort entnum)
            => HudElem.GetHudElem((entnum << 16) | @class);

Return to “InfinityScript”

Who is online

Users browsing this forum: No registered users and 5 guests