if(/^\s*\/\//)
{
}
- elsif(/^\s+(?:int|float|string_t|vec3_t)\s+(\w+);\s*(?:\/\/(.*))?/)
+ elsif(/^\s+(?:int|float|string_t|vec3_t|func_t)\s+(\w+);\s*(?:\/\/(.*))?/)
{
my $name = $1;
my $descr = $2 || "";
if not defined $found;
}
}
+ elsif(/getglobal\w*\(\w+, "(\w+)"\)/)
+ {
+ # hack for weird DP source
+ $vm{csprogs}{globals}{$1} = [0, "DP_CSQC_SPAWNPARTICLE"];
+ }
}
close $fh;
}