/dports/games/widelands/widelands-build21/data/scripting/win_conditions/ |
H A D | wood_gnome.lua | 33 local plrs = wl.Game().players 51 playerpoints = count_owned_valuable_fields_for_all_players(plrs, "tree") 55 local function _send_state(remaining_time, plrs, show_popup) 59 for idx,plr in ipairs(plrs) do 66 broadcast(plrs, game_status.title, msg, {popup = show_popup}) 69 local function _game_over(plrs) 72 for idx,plr in ipairs(plrs) do 78 for idx,plr in ipairs(plrs) do 119 _send_state(remaining_time, plrs, show_popup) 124 while game.time < (max_time * 60 * 1000) and count_factions(plrs) > 1 do [all …]
|
H A D | win_condition_functions.lua | 64 for idx,p in ipairs(plrs) do 73 table.remove(plrs, idx) 91 function count_factions(plrs) 94 for idx,p in ipairs(plrs) do 117 for idx, p in ipairs(plrs) do 125 for idx, p in ipairs(plrs) do 134 for idx, p in ipairs(plrs) do 151 local plrs = wl.Game().players 152 plrs[1]:add_objective(name, title, body) 233 for idx, player in ipairs(plrs) do [all …]
|
H A D | territorial_time.lua | 41 local plrs = wl.Game().players 49 local function _send_state(remaining_time, plrs, show_popup) 53 for idx, player in ipairs(plrs) do 60 msg = msg .. losing_status_header(plrs) 77 …while game.time <= ((max_time - 5) * 60 * 1000) and count_factions(plrs) > 1 and territory_points.… 81 broadcast(plrs, game_status.title, msg, {popup = show_popup}) 90 …while game.time < (max_time * 60 * 1000) and count_factions(plrs) > 1 and territory_points.remaini… 95 check_player_defeated(plrs, lost_game.title, lost_game.body) 99 calculate_territory_points(fields, plrs) 107 _send_state(remaining_time, plrs, show_popup)
|
H A D | collectors.lua | 37 local plrs = wl.Game().players 39 for idx,plr in ipairs(plrs) do 156 local function _send_state(remaining_time, plrs, show_popup) 160 for idx, plr in ipairs(plrs) do 175 broadcast(plrs, game_status.title, msg, {popup = show_popup}) 178 local function _game_over(plrs) 181 for idx,plr in ipairs(plrs) do 203 if (count_factions(plrs) > 1) then 230 _send_state(remaining_time, plrs, show_popup) 235 while game.time < (max_time * 60 * 1000) and count_factions(plrs) > 1 do [all …]
|
H A D | territorial_lord.lua | 36 local plrs = wl.Game().players 49 for idx, player in ipairs(plrs) do 55 msg = msg .. losing_status_header(plrs) 69 while count_factions(plrs) > 1 and territory_points.remaining_time > 0 do 74 check_player_defeated(plrs, lost_game.title, lost_game.body)
|
H A D | defeat_all.lua | 23 local plrs = wl.Game().players 32 check_player_defeated(plrs, lost_game.title, lost_game.body, wc_descname, wc_version) 33 until count_factions(plrs) <= 1 36 broadcast_win(plrs,
|
H A D | endless_game.lua | 23 local plrs = wl.Game().players 32 check_player_defeated(plrs, lost_game.title, lost_game.body, wc_descname, wc_version) 33 until count_factions(plrs) < 1
|
H A D | endless_game_fogless.lua | 23 local plrs = wl.Game().players 48 check_player_defeated(plrs, lost_game.title, lost_game.body, wc_descname, wc_version) 49 until count_factions(plrs) < 1
|
H A D | artifacts.lua | 56 local plrs = wl.Game().players 72 for idx, plr in ipairs(plrs) do 98 for idx, plr in ipairs(plrs) do 123 check_player_defeated(plrs, lost_game.title, lost_game.body, wc_descname, wc_version) 175 for idx, plr in ipairs(plrs) do 195 for idx, plr in ipairs(plrs) do
|
H A D | territorial_functions.lua | 90 local plrs = wl.Game().players 91 if plrs[1]:is_attack_forbidden(plrs[2].number) then 153 if plrs[1]:is_attack_forbidden(plrs[2].number) and winning_points > 0 then
|
/dports/games/prboom-plus/prboom-plus-2.5.1.3/src/ |
H A D | wi_stuff.c | 314 static wbplayerstruct_t* plrs; // wbs->plyr[] variable 999 frags += plrs[playernum].frags[i]; in WI_fragSum() 1005 frags -= plrs[playernum].frags[playernum]; in WI_fragSum() 1092 dm_frags[i][j] = plrs[i].frags[j]; in WI_updateDeathmatchStats() 1118 && dm_frags[i][j] != plrs[i].frags[j]) in WI_updateDeathmatchStats() 1120 if (plrs[i].frags[j] < 0) in WI_updateDeathmatchStats() 1620 (plrs[me].ssecret * 100) / wbs->maxsecret : 100); in WI_updateStats() 1623 cnt_time = plrs[me].stime / TICRATE; in WI_updateStats() 1682 if (cnt_time >= plrs[me].stime / TICRATE) in WI_updateStats() 1683 cnt_time = plrs[me].stime / TICRATE; in WI_updateStats() [all …]
|
/dports/games/prboom/prboom-2.5.0/src/ |
H A D | wi_stuff.c | 314 static wbplayerstruct_t* plrs; // wbs->plyr[] variable 996 frags += plrs[playernum].frags[i]; in WI_fragSum() 1002 frags -= plrs[playernum].frags[playernum]; in WI_fragSum() 1089 dm_frags[i][j] = plrs[i].frags[j]; in WI_updateDeathmatchStats() 1115 && dm_frags[i][j] != plrs[i].frags[j]) in WI_updateDeathmatchStats() 1117 if (plrs[i].frags[j] < 0) in WI_updateDeathmatchStats() 1596 (plrs[me].ssecret * 100) / wbs->maxsecret : 100); in WI_updateStats() 1599 cnt_time = plrs[me].stime / TICRATE; in WI_updateStats() 1658 if (cnt_time >= plrs[me].stime / TICRATE) in WI_updateStats() 1659 cnt_time = plrs[me].stime / TICRATE; in WI_updateStats() [all …]
|
/dports/games/chocolate-doom/chocolate-doom-3.0.1/src/strife/ |
H A D | wi_stuff.c | 314 static wbplayerstruct_t* plrs; // wbs->plyr[] 848 frags += plrs[playernum].frags[i]; 854 frags -= plrs[playernum].frags[playernum]; 918 dm_frags[i][j] = plrs[i].frags[j]; 944 && dm_frags[i][j] != plrs[i].frags[j]) 946 if (plrs[i].frags[j] < 0) 1356 cnt_time = plrs[me].stime / TICRATE; 1412 if (cnt_time >= plrs[me].stime / TICRATE) 1413 cnt_time = plrs[me].stime / TICRATE; 1421 if (cnt_time >= plrs[me].stime / TICRATE) [all …]
|
/dports/games/chocolate-doom/chocolate-doom-3.0.1/src/doom/ |
H A D | wi_stuff.c | 314 static wbplayerstruct_t* plrs; // wbs->plyr[] variable 848 frags += plrs[playernum].frags[i]; in WI_fragSum() 854 frags -= plrs[playernum].frags[playernum]; in WI_fragSum() 918 dm_frags[i][j] = plrs[i].frags[j]; in WI_updateDeathmatchStats() 944 && dm_frags[i][j] != plrs[i].frags[j]) in WI_updateDeathmatchStats() 946 if (plrs[i].frags[j] < 0) in WI_updateDeathmatchStats() 1352 cnt_time = plrs[me].stime / TICRATE; in WI_updateStats() 1408 if (cnt_time >= plrs[me].stime / TICRATE) in WI_updateStats() 1409 cnt_time = plrs[me].stime / TICRATE; in WI_updateStats() 1417 if (cnt_time >= plrs[me].stime / TICRATE) in WI_updateStats() [all …]
|
/dports/games/crispy-doom/crispy-doom-crispy-doom-5.10.3/src/strife/ |
H A D | wi_stuff.c | 314 static wbplayerstruct_t* plrs; // wbs->plyr[] 848 frags += plrs[playernum].frags[i]; 854 frags -= plrs[playernum].frags[playernum]; 918 dm_frags[i][j] = plrs[i].frags[j]; 944 && dm_frags[i][j] != plrs[i].frags[j]) 946 if (plrs[i].frags[j] < 0) 1356 cnt_time = plrs[me].stime / TICRATE; 1412 if (cnt_time >= plrs[me].stime / TICRATE) 1413 cnt_time = plrs[me].stime / TICRATE; 1421 if (cnt_time >= plrs[me].stime / TICRATE) [all …]
|
/dports/games/libretro-prboom/libretro-prboom-cc80175/src/ |
H A D | wi_stuff.c | 1108 frags += plrs[playernum].frags[i]; in WI_fragSum() 1114 frags -= plrs[playernum].frags[playernum]; in WI_fragSum() 1201 dm_frags[i][j] = plrs[i].frags[j]; in WI_updateDeathmatchStats() 1227 && dm_frags[i][j] != plrs[i].frags[j]) in WI_updateDeathmatchStats() 1229 if (plrs[i].frags[j] < 0) in WI_updateDeathmatchStats() 1725 (plrs[me].ssecret * 100) / wbs->maxsecret : 100); in WI_updateStats() 1728 cnt_time = plrs[me].stime / TICRATE; in WI_updateStats() 1772 (plrs[me].ssecret * 100) / wbs->maxsecret : 100)) in WI_updateStats() 1823 cnt_time = (plrs[me].stime / TICRATE); in WI_updateStats() 2144 memcpy (&save->plrs, &plrs_real, sizeof(save->plrs)); in WI_Save() [all …]
|
/dports/games/crispy-doom/crispy-doom-crispy-doom-5.10.3/src/doom/ |
H A D | wi_stuff.c | 316 static wbplayerstruct_t* plrs; // wbs->plyr[] variable 899 frags += plrs[playernum].frags[i]; in WI_fragSum() 905 frags -= plrs[playernum].frags[playernum]; in WI_fragSum() 969 dm_frags[i][j] = plrs[i].frags[j]; in WI_updateDeathmatchStats() 995 && dm_frags[i][j] != plrs[i].frags[j]) in WI_updateDeathmatchStats() 997 if (plrs[i].frags[j] < 0) in WI_updateDeathmatchStats() 1403 cnt_time = plrs[me].stime / TICRATE; in WI_updateStats() 1459 if (cnt_time >= plrs[me].stime / TICRATE) in WI_updateStats() 1460 cnt_time = plrs[me].stime / TICRATE; in WI_updateStats() 1468 if (cnt_time >= plrs[me].stime / TICRATE) in WI_updateStats() [all …]
|
/dports/games/doomsday/doomsday-2.3.1/doomsday/apps/libdoomsday/src/world/ |
H A D | actions.cpp | 43 auto &plrs = DoomsdayApp::players(); in A_DoomsdayScript() local 53 if (&plrs.at(i).publicData() == in A_DoomsdayScript() 57 mobj = plrs.at(i).publicData().mo; in A_DoomsdayScript() 71 new RecordValue(plrs.at(plrNum).objectNamespace()))); in A_DoomsdayScript()
|
/dports/games/zdoom/zdoom-2.8.1/src/ |
H A D | wi_stuff.cpp | 1527 cnt_kills[i] = plrs[i].skills; in WI_updateNetgameStats() 1528 cnt_items[i] = plrs[i].sitems; in WI_updateNetgameStats() 1529 cnt_secret[i] = plrs[i].ssecret; in WI_updateNetgameStats() 1553 cnt_kills[i] = plrs[i].skills; in WI_updateNetgameStats() 1578 cnt_items[i] = plrs[i].sitems; in WI_updateNetgameStats() 1820 cnt_kills[0] = plrs[me].skills; in WI_updateStats() 1821 cnt_items[0] = plrs[me].sitems; in WI_updateStats() 1822 cnt_secret[0] = plrs[me].ssecret; in WI_updateStats() 1839 cnt_kills[0] = plrs[me].skills; in WI_updateStats() 1855 cnt_items[0] = plrs[me].sitems; in WI_updateStats() [all …]
|
/dports/games/odamex/odamex-src-0.7.0/client/src/ |
H A D | wi_stuff.cpp | 893 cnt_kills_c[i] = plrs[i].skills; in WI_updateNetgameStats() 894 cnt_items_c[i] = plrs[i].sitems; in WI_updateNetgameStats() 895 cnt_secret_c[i] = plrs[i].ssecret; in WI_updateNetgameStats() 919 if (cnt_kills_c[i] > plrs[i].skills) in WI_updateNetgameStats() 920 cnt_kills_c[i] = plrs[i].skills; in WI_updateNetgameStats() 945 if (cnt_items_c[i] > plrs[i].sitems) in WI_updateNetgameStats() 946 cnt_items_c[i] = plrs[i].sitems; in WI_updateNetgameStats() 971 if (cnt_secret_c[i] > plrs[i].ssecret) in WI_updateNetgameStats() 972 cnt_secret_c[i] = plrs[i].ssecret; in WI_updateNetgameStats() 1112 cnt_time = (plrs[me].stime) ? plrs[me].stime / TICRATE : level.time / TICRATE; in WI_updateStats() [all …]
|
/dports/games/redeclipse16/base-1.6.0/src/game/ |
H A D | aiman.h | 292 …int plrs[T_TOTAL] = {0}, highest = -1, bots = 0, offset = balance%numt; // we do this because huma… in checksetup() local 302 plrs[team]++; in checksetup() 303 if(highest < 0 || plrs[team] > plrs[highest]) highest = team; in checksetup() 305 …if(highest >= 0) loopi(numt) if(i != highest && plrs[i] < plrs[highest]) loopj(plrs[highest]-plrs[… in checksetup()
|
/dports/games/redeclipse/base-2.0.0/src/game/ |
H A D | aiman.h | 290 …int plrs[T_NUM] = {0}, highest = -1, bots = 0, offset = balance%numt; // we do this because humans… in checksetup() local 300 plrs[team]++; in checksetup() 301 if(highest < 0 || plrs[team] > plrs[highest]) highest = team; in checksetup() 303 …if(highest >= 0) loopi(numt) if(i != highest && plrs[i] < plrs[highest]) loopj(plrs[highest]-plrs[… in checksetup()
|
/dports/math/lrslib/lrslib-071a/ |
H A D | README | 163 8. plrs is no longer supported 277 With gcc 4.8 plrs does not compile. Changed memory ordering (plrs.cpp line 168) from 290 The instructions below for installing plrs are now simpler. 297 lrslib-050 contains a multi-thread version of lrs called plrs. The input/output files for plrs are … 298 same as for lrs, however plrs is intended just for vertex or facet enumeration, and other functiona… 303 % plrs <infile> [ <outfile> ] [ -mt <max threads> ] [ -id <initial depth> ] 308 Setup instructions for plrs. Use version 1.57.0 or later of the boost libary 321 …"make plrs" will make plrs with the gmp library (assuming the gmp library is already installed on … 322 …"make plrsmp" will make plrs with the standard lrsmp arithmetic library and plrs1 with the long in… 327 2012.9.27 initial release of multithread version of lrs called plrs that uses a wrapper [all …]
|
/dports/games/doomsday/doomsday-2.3.1/doomsday/apps/client/src/world/base/ |
H A D | bindings_world.cpp | 156 auto &plrs = DoomsdayApp::players(); in Function_Thing_Player() local 157 return new RecordValue(plrs.at(plrs.indexOf(mo.dPlayer)).objectNamespace()); in Function_Thing_Player()
|
/dports/games/wargus/wargus-3.2.0/scripts/ |
H A D | guichan.lua | 1755 for plrs=0,14 do 1757 if plrs==plrs2 then 1759 if GameSettings.Presets[plrs].Team == -1 then 1762 SetDiplomacy(plrs, "allied" , plrs2) 1763 SetSharedVision(plrs, true, plrs2) 1765 SetDiplomacy(plrs, "enemy" , plrs2) 1766 SetSharedVision(plrs, false, plrs2) 1770 SetDiplomacy(plrs, "allied" , plrs2) 1771 SetSharedVision(plrs, true, plrs2) 1773 SetDiplomacy(plrs, "enemy" , plrs2) [all …]
|