SHOW:
|
|
- or go back to the newest paste.
1 | #library "start" | |
2 | #include "zcommon.acs" | |
3 | #include "stralloc.acs" | |
4 | #include "strcmp.acs" | |
5 | ||
6 | script 999 ENTER | |
7 | { | |
8 | Log(s:"Welcome to Final Duel"); | |
9 | } | |
10 | - | /*int s1; |
10 | + | |
11 | - | s1 = addString(StrParam(k:"reloader")); |
11 | + | |
12 | - | if(getString(s1) == "??? (reloader)") |
12 | + | |
13 | } | |
14 | script "startfd" Enter // Starts everything | |
15 | { | |
16 | int s1; | |
17 | s1 = addString(StrParam(k:"reloader")); | |
18 | int s1v; | |
19 | s1v = "??? (reloader)"; | |
20 | if(strcmp(getString(s1),s1v) == 0) | |
21 | { | |
22 | ACS_Terminate(999, 0); | |
23 | Log(s:"ERROR 5, RELOAD KEY NOT BOUND"); | |
24 | setfont("BIGFONT"); | |
25 | Print(s:"Please set a key for reloading in the options menu"); | |
26 | } | |
27 | freeString(s1); | |
28 | // int reloadset = StrParam(k:"reloader"); | |
29 | /* if(GetCVar("sv_smartaim")<3 && GetCVar("sv_smartaim")!=0 && GetCVar("fd_dummycmd") == 1 || GetCVar("sv_smartaim")>3 && GetCVar("sv_smartaim")!=0 && GetCVar("fd_dummycmd") == 1) | |
30 | { | |
31 | setfont("BIGFONT"); | |
32 | hudmessage(s:"You must set your autoaim to 'Only Monsters', | |
33 | \n\n or this message will stay here forever. | |
34 | \n\n Open the console(", k:"toggleconsole", s:" button) and type:"; | |
35 | HUDMSG_FADEINOUT, 0, CR_RED, 0.5, 0.44, 0.1, 0.1, 0.1); | |
36 | ||
37 | hudmessage(s:"SV_SMARTAIM 3"; | |
38 | HUDMSG_FADEINOUT, 0, CR_GREEN, 0.5, 0.53, 0.1, 0.1, 0.1); | |
39 | }*/ | |
40 | if(!GetCVar("fd_dummycmd") == 1) | |
41 | { | |
42 | ACS_Terminate(999, 0); | |
43 | Log(s:"ERROR 5, MOD NOT INITIALIZED"); | |
44 | setfont("BIGFONT"); | |
45 | Print(s:"Please type 'initmenu' in the\nconsole(", k:"toggleconsole", s:" button) and restart the game"); | |
46 | } | |
47 | delay(1); | |
48 | restart; | |
49 | } | |
50 | // Changes player TID | |
51 | #define PLAYER_TID_START 1000 | |
52 | script "PTID1" ENTER | |
53 | { | |
54 | Thing_ChangeTID(0,PLAYER_TID_START+PlayerNumber()); | |
55 | } | |
56 | script "PTID2" RESPAWN | |
57 | { | |
58 | // Make sure our old dead body doesn't still have our tid | |
59 | Thing_ChangeTID(PLAYER_TID_START+PlayerNumber(),0); | |
60 | Thing_ChangeTID(0,PLAYER_TID_START+PlayerNumber()); | |
61 | } |