.float alpha_max, alpha_min;
.float fade_start, fade_end;
.float default_solid; // Variable to store default self.solid for clientwalls
-.float clientwall_flag;
+.float antiwall_flag;
void Ent_Wall_Draw();
void g_clientmodel_use(void)
{
+ if (self.antiwall_flag == 1)
+ {
+ self.inactive = 1;
+ }
+ else if (self.antiwall_flag == 2)
+ {
+ self.inactive = 0;
+ }
+ if (self.inactive)
+ {
+ self.solid = SOLID_NOT;
+ }
+ else
+ {
+ self.solid = self.default_solid;
+ }
g_clientmodel_setcolormaptoactivator();
}
{
// Flag to set func_clientwall state
// 1 == deactivate, 2 == activate, 0 == do nothing
- float aw_inactive = self.clientwall_flag;
+ float aw_inactive = self.antiwall_flag;
for(t = world; (t = find(t, targetname, s)); )
if(t.use)
{
else
{
if (t.classname == "func_clientwall" || t.classname == "func_clientillusionary")
- {
- if (aw_inactive == 1)
- {
- t.inactive = 1;
- }
- else if (aw_inactive == 2)
- {
- t.inactive = 0;
- }
- if (t.inactive)
- {
- t.solid = SOLID_NOT;
- }
- else
- {
- t.solid = t.default_solid;
- }
- }
+ t.antiwall_flag = aw_inactive;
self = t;
other = stemp;
activator = act;
void spawnfunc_target_changelevel();
-.float clientwall_flag; // Variable to define what to do with func_clientwall
+.float antiwall_flag; // Variable to define what to do with func_clientwall
// 0 == do nothing, 1 == deactivate, 2 == activate
#endif