ETMods.net

N!tmod, a Wolfenstein: Enemy Territory Modification!

You are not logged in.

Announcement

You can donate to help us keeping services online.

#1 01-Jun-14 23:14:58

NoHero
Member
Registered: 07-Dec-13
Posts: 19

LUA Nitmod Awards

Would be very handy for a lua interface to access the nitmod award system, creating new awards as well as using the tracking features in it would be awesome.

Offline

#2 06-Jun-14 14:40:14

maras
Member
Registered: 09-May-14
Posts: 23

Re: LUA Nitmod Awards

+ :]

Offline

#3 06-Jun-14 17:18:39

N!trox*
Administrator
Registered: 30-Mar-10
Posts: 1,090

Re: LUA Nitmod Awards

How about a callback triggered as soon as the server receives global stats for a player (usually not more than once in a map, when client has finished connecting) ?
This way you could work with the stats buffer sent by the master.

Something like:

function et_ReceivedGlobalStats(clientnum, buffer)
	et.G_Print( "Received Global Stats for player #" .. clientnum .. " : " .. buffer .. "\n")
end

Output:

Received Global Stats for player #0 : 22187 20282 94 31095 2414 41 37 32 145 197 491 2787 16 152 66

And i could modify the award system to let modders create their own awards based on this and the player's current stats, and send their own awards text with a special servercmd.


iluvnitmod.png

Offline

Board footer

Powered by FluxBB