57 proto native
bool CanFire(
int muzzleIndex);
59 proto native
bool DryFire(
int muzzleIndex);
159 proto
bool GetCartridgeInfo(
int muzzleIndex, out
float ammoDamage, out
string ammoTypeName);
226 proto native
bool TestAttachMagazine(
int muzzleIndex, Magazine mag,
bool do_occupancy_test,
bool do_script_check);
proto native float GetZoomMin(int muzzleIndex)
proto native bool AttachMagazine(int muzzleIndex, Magazine mag)
proto bool GetInternalMagazineCartridgeInfo(int muzzleIndex, int cartridgeIndex, out float ammoDamage, out string ammoTypeName)
proto native bool StepZoomIn()
sets zoom to next defined (respective to current) value in zoom fov config array
proto native bool ZoomIn()
moves current zoom by 1% up
proto native bool CreateRound(int muzzleIndex)
proto native bool GetCurrentModeAutoFire(int muzzleIndex)
proto native void SetMuzzleMode(int muzzleIndex, int modeIndex)
proto native int GetCurrentMuzzle()
proto native ItemOptics GetAttachedOptics()
proto native int GetInternalMagazineMaxCartridgeCount(int muzzleIndex)
proto native int GetSlotFromMuzzleIndex(int muzzleIndex)
proto native bool EjectCasing(int muzzleIndex)
proto native bool IsChamberFiredOut(int muzzleIndex)
proto native void SelectionBulletHide()
proto native float GetZoom()
returns current percentage of zoom
proto native owned string GetChamberAmmoTypeName(int muzzleIndex)
proto native bool IsFlashlightOn()
query state of flashlight
proto native bool CanAttachMagazine(int muzzleIndex, Magazine mag)
proto native bool SetZoom(float percent)
proto native int GetTotalMaxCartridgeCount(int muzzleIndex)
proto native void SetNextMuzzleMode(int muzzleIndex)
proto native bool SetStepZoom(int step)
proto native float GetZeroingDistanceZoomMax(int muzzleIndex)
proto native void SetCurrentMuzzle(int muzzleIndex)
proto native bool TestAttachMagazine(int muzzleIndex, Magazine mag, bool do_occupancy_test, bool do_script_check)
proto native bool IsChamberFull(int muzzleIndex)
proto native bool Fire(int muzzleIndex, vector pos, vector dir, vector speed)
proto native void Synchronize()
Force synchronizes the weapon state from Server to Client.
proto native int GetCurrentMode(int muzzleIndex)
proto native bool ZoomOut()
moves current zoom by 1% down
proto native float GetCurrentZeroing(int muzzleIndex=0)
proto native bool PushCartridgeToChamber(int muzzleIndex, float ammoDamage, string ammoTypeName)
proto native void SelectionMagazineHide()
proto native bool CanFire(int muzzleIndex)
proto bool GetCartridgeInfo(int muzzleIndex, out float ammoDamage, out string ammoTypeName)
proto native bool EnterOptics()
switches to optics mode if possible
proto native void GetCameraPoint(int muzzleIndex, out vector pos, out vector dir)
proto native float GetZeroingClamp(int muzzleIndex=0)
proto native void SelectionMagazineShow()
proto native bool StepZoomOut()
sets zoom to previous (respective to current) defined value in zoom fov config array
proto native int GetStepZoom()
returns position of currently used value in zoom config array
proto native bool CanChamberFromMag(int muzzleIndex, Magazine mag)
proto native bool IsChamberEmpty(int muzzleIndex)
proto native owned string GetMaxMagazineTypeName(int muzzleIndex)
proto bool PopCartridgeFromInternalMagazine(int muzzleIndex, out float ammoDamage, out string ammoTypeName)
proto native void EffectBulletHide(int muzzleIndex)
proto native bool HasInternalMagazine(int muzzleIndex)
proto native void EffectBulletShow(int muzzleIndex, float dmg, string type)
proto native int GetMuzzleModeCount(int muzzleIndex)
proto native int GetCurrentModeBurstSize(int muzzleIndex)
proto native bool StepZeroingDown(int muzzleIndex=0)
proto native UnderSlugLauncher GetAttachedLauncher()
bool IsInternalMagazineFull(int muzzleIndex)
proto native owned string GetRandomMagazineTypeName(int muzzleIndex)
proto native bool FlashlightOn()
attempt to turn on flashlight
proto native void SetGroundAnimFrameIndex(int groundAnimFrameIndex)
proto native int GetMagazineTypeCount(int muzzleIndex)
proto native bool PushCartridgeToInternalMagazine(int muzzleIndex, float ammoDamage, string ammoTypeName)
proto native int GetInternalMagazineCartridgeCount(int muzzleIndex)
proto native bool SetStepZeroing(int muzzleIndex, int step)
bool IsChamberFullEx(int muzzleIndex)
void StepZeroingUpAllMuzzles()
proto native bool IsInOptics()
is weapon in optics mode or not
proto native bool DryFire(int muzzleIndex)
void StepZeroingDownAllMuzzles()
proto native Magazine GetMagazine(int muzzleIndex)
proto native float GetZoomInit(int muzzleIndex)
proto native void SetCurrentMode(int muzzleIndex, int mode)
proto bool PopCartridgeFromChamber(int muzzleIndex, out float ammoDamage, out string ammoTypeName)
proto native owned string GetChamberedCartridgeMagazineTypeName(int muzzleIndex)
proto native float GetZoomMax(int muzzleIndex)
proto native int GetTotalCartridgeCount(int muzzleIndex)
proto native void SelectionBulletShow()
proto native bool StepZeroingUp(int muzzleIndex=0)
proto native bool DryDryFire(int muzzleIndex)
proto native int GetStepZeroing(int muzzleIndex=0)
proto native bool ExitOptics()
switches out of optics mode (if possible)
proto native bool FlashlightOff()
attempt to turn off flashlight
proto native float GetZeroingDistanceZoomMin(int muzzleIndex)
proto native bool IsChamberJammed(int muzzleIndex)
proto native bool IsChamberEjectable(int muzzleIndex)
proto native owned string GetRandomChamberableAmmoTypeName(int muzzleIndex)
proto native owned string GetCurrentModeName(int muzzleIndex)
proto native float GetReloadTime(int muzzleIndex)
proto native int GetMuzzleCount()
proto native ItemSuppressor GetAttachedSuppressor()
script counterpart to engine's class Weapon
bool IsChamberFull(int idx)