mirror of
https://github.com/InfinityLoader/IL-GSC.git
synced 2025-06-24 16:37:54 -05:00
Added MW3 Scripts
This commit is contained in:
126
MW3/Xbox/SP/animscripts/weaponlist.gsc
Normal file
126
MW3/Xbox/SP/animscripts/weaponlist.gsc
Normal file
@ -0,0 +1,126 @@
|
||||
/*******************************************************************
|
||||
* Decompiled By: Bog
|
||||
* Decompiled File: animscripts\weaponlist.gsc
|
||||
* Game: Call of Duty: Modern Warfare 3
|
||||
* Platform: Console
|
||||
* Function Count: 9
|
||||
* Decompile Time: 169 ms
|
||||
* Timestamp: 10/27/2023 2:31:03 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
|
||||
func_08BA(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(weaponclass(self.weapon) == "rocketlauncher")
|
||||
{
|
||||
if(!self.a.rocketvisible)
|
||||
{
|
||||
thread animscripts/combat_utility::showrocketwhenreloadisdone();
|
||||
}
|
||||
}
|
||||
|
||||
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";
|
||||
}
|
Reference in New Issue
Block a user