mirror of
https://github.com/InfinityLoader/IL-GSC.git
synced 2025-06-07 17:17:50 -05:00
118 lines
2.0 KiB
Plaintext
118 lines
2.0 KiB
Plaintext
/*******************************************************************
|
|
* Decompiled By: Bog
|
|
* Decompiled File: weaponlist.gsc
|
|
* Game: Call of Duty: Advanced Warfare
|
|
* Platform: PC
|
|
* Function Count: 9
|
|
* Decompile Time: 143 ms
|
|
* Timestamp: 4/22/2024 2:01:12 AM
|
|
*******************************************************************/
|
|
|
|
//Function Number: 1
|
|
usingautomaticweapon()
|
|
{
|
|
return weaponisauto(self.weapon) || weaponburstcount(self.weapon) > 0;
|
|
}
|
|
|
|
//Function Number: 2
|
|
usingsemiautoweapon()
|
|
{
|
|
return weaponissemiauto(self.weapon);
|
|
}
|
|
|
|
//Function Number: 3
|
|
autoshootanimrate()
|
|
{
|
|
if(usingautomaticweapon())
|
|
{
|
|
return 0.1 / weaponfiretime(self.weapon);
|
|
}
|
|
|
|
return 0.5;
|
|
}
|
|
|
|
//Function Number: 4
|
|
burstshootanimrate()
|
|
{
|
|
if(usingautomaticweapon())
|
|
{
|
|
return 0.1 / weaponfiretime(self.weapon);
|
|
}
|
|
|
|
return 0.2;
|
|
}
|
|
|
|
//Function Number: 5
|
|
waitaftershot()
|
|
{
|
|
return 0.25;
|
|
}
|
|
|
|
//Function Number: 6
|
|
shootanimtime(param_00)
|
|
{
|
|
if(!usingautomaticweapon() || isdefined(param_00) && param_00 == 1)
|
|
{
|
|
var_01 = 0.5 + randomfloat(1);
|
|
return weaponfiretime(self.weapon) * var_01;
|
|
}
|
|
|
|
return weaponfiretime(self.weapon);
|
|
}
|
|
|
|
//Function Number: 7
|
|
refillclip()
|
|
{
|
|
if(self.weapon == "none")
|
|
{
|
|
self.bulletsinclip = 0;
|
|
return 0;
|
|
}
|
|
|
|
if(!isdefined(self.bulletsinclip))
|
|
{
|
|
self.bulletsinclip = weaponclipsize(self.weapon);
|
|
}
|
|
else
|
|
{
|
|
self.bulletsinclip = weaponclipsize(self.weapon);
|
|
}
|
|
|
|
if(self.bulletsinclip <= 0)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
return 1;
|
|
}
|
|
|
|
//Function Number: 8
|
|
add_weapon(param_00,param_01,param_02,param_03,param_04)
|
|
{
|
|
if(!isdefined(param_02))
|
|
{
|
|
param_02 = 3;
|
|
}
|
|
|
|
if(!isdefined(param_03))
|
|
{
|
|
param_02 = 1;
|
|
}
|
|
|
|
if(!isdefined(param_04))
|
|
{
|
|
param_04 = "rifle";
|
|
}
|
|
|
|
param_00 = tolower(param_00);
|
|
level.aiweapon[param_00]["type"] = param_01;
|
|
level.aiweapon[param_00]["time"] = param_02;
|
|
level.aiweapon[param_00]["clipsize"] = param_03;
|
|
level.aiweapon[param_00]["anims"] = param_04;
|
|
}
|
|
|
|
//Function Number: 9
|
|
addturret(param_00)
|
|
{
|
|
level.aiweapon[tolower(param_00)]["type"] = "turret";
|
|
} |