mirror of
https://github.com/XLabsProject/s1x-client.git
synced 2023-08-02 15:02:12 +02:00
Finish logprint code in gsc (#516)
This commit is contained in:
parent
15c31e6cec
commit
712a69a452
3637
data/maps/mp/gametypes/_damage.gsc
Normal file
3637
data/maps/mp/gametypes/_damage.gsc
Normal file
File diff suppressed because it is too large
Load Diff
2250
data/maps/mp/gametypes/_playerlogic.gsc
Normal file
2250
data/maps/mp/gametypes/_playerlogic.gsc
Normal file
File diff suppressed because it is too large
Load Diff
@ -54,7 +54,7 @@ namespace game_log
|
|||||||
va_list ap;
|
va_list ap;
|
||||||
va_start(ap, fmt);
|
va_start(ap, fmt);
|
||||||
|
|
||||||
vsprintf_s(buffer, fmt, ap);
|
vsnprintf_s(buffer, _TRUNCATE, fmt, ap);
|
||||||
|
|
||||||
va_end(ap);
|
va_end(ap);
|
||||||
|
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
#include "scheduler.hpp"
|
#include "scheduler.hpp"
|
||||||
#include "notifies.hpp"
|
#include "notifies.hpp"
|
||||||
#include "scripting.hpp"
|
#include "scripting.hpp"
|
||||||
|
#include "game_log.hpp"
|
||||||
|
|
||||||
#include <utils/hook.hpp>
|
#include <utils/hook.hpp>
|
||||||
|
|
||||||
@ -193,6 +194,15 @@ namespace notifies
|
|||||||
|
|
||||||
scripting::notify(level, params[0], {player, message});
|
scripting::notify(level, params[0], {player, message});
|
||||||
scripting::notify(player, params[0], {message});
|
scripting::notify(player, params[0], {message});
|
||||||
|
|
||||||
|
game_log::g_log_printf("%s;%s;%i;%s;%s\n",
|
||||||
|
params[0],
|
||||||
|
player.call("getguid").as<const char*>(),
|
||||||
|
player.call("getentitynumber").as<int>(),
|
||||||
|
player.get("name").as<const char*>(),
|
||||||
|
message.data()
|
||||||
|
);
|
||||||
|
|
||||||
}, scheduler::pipeline::server);
|
}, scheduler::pipeline::server);
|
||||||
|
|
||||||
if (hidden)
|
if (hidden)
|
||||||
|
Loading…
Reference in New Issue
Block a user