-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
204 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
function func_dev_weap_1(item) { | ||
weap = getweapon(#"ar_accurate_t9"); | ||
|
||
attach = weap.supportedattachments; | ||
|
||
if (!isdefined(attach)) { | ||
self iprintlnbold("^1Not attachs"); | ||
return; | ||
} | ||
|
||
i = 0; | ||
foreach (key, val in attach) { | ||
self iprintln(i + " - " + val); | ||
i++; | ||
if (i % 3 == 0) { | ||
while (!self key_mgr_has_key_pressed(#"parent_page", true)) { waitframe(1); } | ||
} | ||
} | ||
while (!self key_mgr_has_key_pressed(#"parent_page", true)) { waitframe(1); } | ||
} | ||
|
||
function func_dev_weap_2(item) { | ||
weap = getweapon(#"ar_accurate_t9"); | ||
|
||
attach = weap.supportedattachments; | ||
|
||
if (!isdefined(attach) || attach.size < 2) { | ||
self iprintlnbold("^1Not attachs"); | ||
return; | ||
} | ||
|
||
self giveweapon(getweapon(weap.name, attach[1])); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
function init_mp_nuketown6() { | ||
// hash_269852f320baca83 xmas | ||
// hash_435b3a7c7c2f2c07 halloween | ||
|
||
if (isdefined(level.atianconfig.nuketown_event)) { | ||
setdvar(#"hash_269852f320baca83", 0); | ||
setdvar(#"hash_269852f320baca83", 0); | ||
switch (level.atianconfig.nuketown_event) { | ||
case #"xmas": | ||
setdvar(#"hash_269852f320baca83", 1); | ||
break; | ||
case #"halloween": | ||
setdvar(#"hash_435b3a7c7c2f2c07", 1); | ||
break; | ||
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
function __pre_init_zm__() { | ||
if (!is_zombies()) { | ||
return; | ||
} | ||
|
||
if (isdefined(level.atianconfig.player_starting_points)) { | ||
level.player_starting_points = level.atianconfig.player_starting_points; | ||
} | ||
callback::add_callback(#"on_round_end", &on_round_end, undefined); | ||
} | ||
|
||
function init_gametype_zm() { | ||
waitframe(1); | ||
level.atian.old_count_zombies = level.var_ef1a71b3; | ||
level.var_ef1a71b3 = &count_zombies; | ||
} | ||
|
||
function count_zombies(*round_number, *player_count) { | ||
if (isdefined(level.atianconfig.zombies_per_rounds) && level.atianconfig.zombies_per_rounds > 0) { | ||
return level.atianconfig.zombies_per_rounds; | ||
} | ||
return [[ level.atian.old_count_zombies ]](round_number, player_count); | ||
} | ||
|
||
function on_round_end() { | ||
level endon(#"hash_3e765c26047c9f54", #"end_game"); | ||
|
||
level flag::set("rbz_exfil_allowed"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters