-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathME5_points.lua
83 lines (73 loc) · 3.08 KB
/
ME5_points.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
--
-- Copyright (c) 2005 Pandemic Studios, LLC. All rights reserved.
--
local __SCRIPT_NAME = "ME5_points";
local debug = true
local function PrintLog(...)
if debug == true then
print("["..__SCRIPT_NAME.."]", unpack(arg));
end
end
PrintLog("Entered")
if not __POINTS_LUA__ then
__POINTS_LUA__ = 1
--------------------------------------------------------------------------------
-- Format: { point_gain = number }, --// description
-- Notes: number should between [-128, 127]
-- If you need to ADD/REMOVE items, please ask programmer to change accordingly
-- enum PointStatT in PlayerStats.h
--------------------------------------------------------------------------------
Player_Stats_Points = {
{ point_gain = 1 }, --// PS_GLB_KILL_AI_PLAYER = 0,
{ point_gain = 3 }, --// PS_GLB_KILL_HUMAN_PLAYER,
{ point_gain = 1 }, --// PS_GLB_KILL_HUMAN_PLAYER_AI_OFF,
{ point_gain = -1 }, --// PS_GLB_KILL_SUICIDE,
{ point_gain = -2 }, --// PS_GLB_KILL_TEAMMATE,
--//
{ point_gain = 4 }, --// PS_GLB_VEHICLE_KILL_INFANTRY_VS_VEHICLE,
{ point_gain = 2 }, --// PS_GLB_VEHICLE_KILL_LIGHT_VS_HEAVY,
{ point_gain = 1 }, --// PS_GLB_VEHICLE_KILL_LIGHT_VS_MEDIUM,
{ point_gain = 1 }, --// PS_GLB_VEHICLE_KILL_HEAVY_VS_LIGHT,
{ point_gain = 1 }, --// PS_GLB_VEHICLE_KILL_HEAVY_VS_MEDIUM,
{ point_gain = 1 }, --// PS_GLB_VEHICLE_KILL_MEDIUM_VS_LIGHT,
{ point_gain = 1 }, --// PS_GLB_VEHICLE_KILL_MEDIUM_VS_HEAVY,
{ point_gain = 10 }, --// PS_GLB_VEHICLE_KILL_ATAT,
{ point_gain = 1 }, --// PS_GLB_VEHICLE_KILL_EMPTY,
--//
{ point_gain = 1 }, --// PS_GLB_HEAL,
{ point_gain = 1 }, --// PS_GLB_REPAIR,
--//
{ point_gain = 1 }, --// PS_GLB_SNIPER_ACCURACY,
{ point_gain = 1 }, --// PS_GLB_HEAVY_WEAPON_MULTI_KILL,
{ point_gain = 1 }, --// PS_GLB_RAMPAGE,
{ point_gain = 1 }, --// PS_GLB_HEAD_SHOT,
{ point_gain = 5 }, --// PS_GLB_KILL_HERO,
--//
--// // conquest
{ point_gain = 5 }, --// PS_CON_CAPTURE_CP,
{ point_gain = 3 }, --// PS_CON_ASSIST_CAPTURE_CP,
{ point_gain = 2 }, --// PS_CON_KILL_ENEMY_CAPTURING_CP,
{ point_gain = 2 }, --// PS_CON_DEFEND_CP,
{ point_gain = 1 }, --// PS_CON_KING_HILL,
--//
--// // capture the flag
{ point_gain = 0 }, --// PS_CAP_PICKUP_FLAG,
{ point_gain = 2 }, --// PS_CAP_DEFEND_FLAG,
{ point_gain = 10 }, --// PS_CAP_CAPTURE_FLAG,
{ point_gain = 3 }, --// PS_CAP_DEFEND_FLAG_CARRIER,
{ point_gain = 3 }, --// PS_CAP_KILL_ENEMY_FLAG_CARRIER,
{ point_gain = -12 }, --// PS_CAP_KILL_ALLY_FLAG_CARRIER,
--//
--// // assault
{ point_gain = 10 }, --// PS_ASS_DESTROY_ASSAULT_OBJ,
--//
--// // escort
{ point_gain = 2 }, --// PS_ESC_DEFEND,
--//
--// // defend
{ point_gain = 2 }, --// PS_DEF_DEFEND,
}
ScriptCB_SetPlayerStatsPoints( Player_Stats_Points )
Player_Stats_Points = nil
end --if not __POINTS_LUA__
PrintLog("Exited")