-
Notifications
You must be signed in to change notification settings - Fork 0
/
File00921.DAT
180 lines (170 loc) · 9.99 KB
/
File00921.DAT
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
function DefensiveAudible()
if (GETFKICKOFF() == 0) then
if (GETFNOHUDDLE() == 1) then
if (GETYARDSTOENDZONE() <= 4) then
SETPLAYGROUP(CDGOALLINE)
return
end
if (GETDOWN() <= 2 and GETDISTANCETO1ST() >= 10) then
SETPLAYGROUP(CDPASS)
return
end
if (GETDOWN() <= 2 and GETRANDOMNUMBER(1) <= 50) then
SETPLAYGROUP(CDRUN)
return
end
if (GETDOWN() <= 2) then
SETPLAYGROUP(CDPASS)
return
end
if (GETDOWN() == 3 and GETDISTANCETO1ST() < 4) then
SETPLAYGROUP(CDRUN)
return
end
if (GETDOWN() == 3) then
SETPLAYGROUP(CDNICKEL)
return
end
if (GETDISTANCETO1ST() < 4) then
SETPLAYGROUP(CDRUN)
return
end
SETPLAYGROUP(CDDIME)
return
end
-- Not No Huddle
if(((GETQUARTER() <= 2 and GETTIMEREMAININGHALF() > 120) or (GETQUARTER() >= 3 and GETTIMEREMAININGHALF() > 210) or GETQUARTER() >= 5) and GETYARDSTOENDZONE() < 95 and GETYARDSTOENDZONE() > 4) then -- no audibles inside 2 minutes in 1st half or 3.5 minutes in 2nd half, or near either goal line, to avoid conflicts with playcalling logic
if(GETDOWN() == 1 or GETDOWN() == 2) then -- Random 1st/2nd down audible
if(GETRANDOMNUMBER(1) <= 1) then
SETPLAYGROUP(CDPASS)
return
end
if(GETRANDOMNUMBER(1) <= 2) then
SETPLAYGROUP(CDRUN)
return
end
end
end
if(GETOFFPLAYGROUP(COPUNT) or GETOFFPLAYGROUP(COPUNTMAXPROTECT)) then
if (GETDOWN() == 4) then -- Offense is lining up in a punt
if(GETDEFPLAYGROUP(CDPUNTRETURN) or GETDEFPLAYGROUP(CDPUNTRETURNBLOCK) or GETDEFPLAYGROUP(CDPUNTRETURNSAFE)) then
else
if (GETYARDSTOENDZONE() >= 35) then -- Offense is lining up in a punt and they're on or outside the 35 - audible into return
SETPLAYGROUP(CDPUNTRETURN)
return
end
end
end
if (GETDOWN() ~= 4) then -- Offense is lining up in a punt when it's not 4th down - assume it is a fake
if(GETDEFPLAYGROUP(CDNORM) or GETDEFPLAYGROUP(CDRUN) or GETDEFPLAYGROUP(CDPASS) or GETDEFPLAYGROUP(CDNICPASS)) then
else
SETPLAYGROUP(CDNORM)
return -- It's not 4th down so we're assuming this is a fake
end
end
elseif(GETOFFPLAYGROUP(COPUNTFAKEPUNT)) then
if (GETDOWN() ~= 4) then -- Offense is lining up in a punt
if(GETDEFPLAYGROUP(CDNORM) or GETDEFPLAYGROUP(CDRUN) or GETDEFPLAYGROUP(CDPASS) or GETDEFPLAYGROUP(CDNICPASS)) then
else
SETPLAYGROUP(CDNORM)
return -- It's not 4th down so we're assuming this is a fake
end
end
elseif(GETOFFPLAYGROUP(COFG) or GETOFFPLAYGROUP(COGOFOR1) or GETOFFPLAYGROUP(COFGFAKEFG)) then
if(GETOFFPLAYGROUP(COFG) or GETOFFPLAYGROUP(COGOFOR1)) then
if(GETDEFPLAYGROUP(CDFGBLOCK) or GETDEFPLAYGROUP(CDFGSAFE) or GETDEFPLAYGROUP(CDFGRETURN)) then
return -- we're done here
end
end
if (GETFPAT() == 1) then -- Offense is lining up in a FG set on the PAT
if(GETDEFPLAYGROUP(CDFGSAFE)) then
else
SETPLAYGROUP(CDFGSAFE)
return
end
end
if (GETDOWN() == 4) then -- Offense is lining up in a FG set on 4th down
if(GETDEFPLAYGROUP(CDFGSAFE)) then
else
if (GETYARDSTOENDZONE() <= 37) then -- They're in FG range so we need to line up in a FG defense so it doesn't look like we're cheating
SETPLAYGROUP(CDFGSAFE)
return
end
end
end
if (GETDOWN() < 4 and GETFPAT() == 0) then -- It's not 4th down so we're assuming this is a fake
SETPLAYGROUP (CDNORM)
return
end
else
if(ISOFFENSIVEPLAYAPASS()) then
if(GETOFFFORMATION() == SET_4WR) then
if(GETDEFPLAYGROUP(CDNICPASS) or GETDEFPLAYGROUP(CDDIME) or GETDEFPLAYGROUP(CDTRIPSPASS)) then
else
SETPLAYGROUP(CDNICPASS)
return
end
elseif(GETOFFFORMATION() == SET_TRIPS) then
if(GETDEFPLAYGROUP(CDNICPASS) or GETDEFPLAYGROUP(CDDIME) or GETDEFPLAYGROUP(CDTRIPSPASS)) then
else
SETPLAYGROUP(CDTRIPSPASS)
return
end
end
end
-- fall through to default case
if(GETDEFPLAYGROUP(CDPUNTRETURNBLOCK) or GETDEFPLAYGROUP(CDPUNTRETURNSAFE) or GETDEFPLAYGROUP(CDPUNTRETURN)) then -- we're in punt return and switch out because they aren't punting
if (GETDISTANCETO1ST() <= 3) then
SETPLAYGROUP(CDGOALLINE)
return
end
SETPLAYGROUP(CDNICKEL)
return
elseif(GETDEFPLAYGROUP(CDFGSAFE) or GETDEFPLAYGROUP(CDFGBLOCK)) then -- we're in Field goal block and switch out because they aren't kicking
SETPLAYGROUP(CDNORM)
return
elseif(GETDEFPLAYGROUP(CDGOALRUN)) then
-- we're in goalline run and make sure they are still in a run play and otherwise change
if(ISOFFENSIVEPLAYAPASS()) then
if(GETOFFFORMATION() == SET_NORMAL) then
SETPLAYGROUP(CDGOALPASS)
return
elseif(GETOFFFORMATION() == SET_JUMBO) then
SETPLAYGROUP(CDGOALPASS)
return
elseif(GETOFFFORMATION() == SET_3WR) then
SETPLAYGROUP(CDPASS)
return
elseif(GETOFFFORMATION() == SET_4WR) then
SETPLAYGROUP(CDNICPASS)
return
elseif(GETOFFFORMATION() == SET_BIG) then
SETPLAYGROUP(CDPASS)
return
elseif(GETOFFFORMATION() == SET_TRIPS) then
SETPLAYGROUP(CDTRIPSPASS)
return
end
end
end
end
end
if (GETFKICKOFF() == 1) then
if(GETOFFPLAYGROUP(COKICKOFFONSIDE)) then
if(not GETDEFPLAYGROUP(CDKICKOFFRETURNONSIDE)) then
SETPLAYGROUP(CDKICKOFFRETURNONSIDE)
return
end
elseif(GETOFFPLAYGROUP(COKICKOFF)) then
if(GETDEFPLAYGROUP(CDKICKOFFRETURNONSIDE)) then
SETPLAYGROUP(CDKICKOFFRETURN)
return
end
elseif(GETOFFPLAYGROUP(COSQUIB)) then
if(GETDEFPLAYGROUP(CDKICKOFFRETURNONSIDE)) then
SETPLAYGROUP(CDKICKOFFRETURN)
return
end
end
end
end