C# Class GTAVBETrainerDotNet.Feature.Weapon

Weapon features
Show file Open project: betenner/betrainer

Public Properties

Property Type Description
ExplosiveAmmo bool
ExplosiveMelee bool
FireAmmo bool
InfiniteAmmo bool
NoReload bool
PermanentParachute bool
VehicleRocket bool

Public Methods

Method Description
ApplyWeaponSet ( WeaponSet set ) : void

Applies weapon set to player

GetAllWeapons ( MenuItem sender ) : void

Gets all weapons

GetCurrentWeaponSet ( ) : WeaponSet

Gets the current player's weapon set

HasAttachment ( int weaponHash, int attachmentHash ) : bool

Does player's specified weapon has the specified attachment?

HasWeapon ( int weaponHash ) : bool

Does player have this weapon

InitFeatures ( ) : void

Initializes features

PreEnterSpecificWeaponMenu ( MenuItem sender ) : void

Pre-enters specific weapn menu

SetAttachment ( MenuItem sender ) : void

Sets attachment

SetExplosiveAmmo ( MenuItem sender ) : void

Sets explosive ammo

SetExplosiveMelee ( MenuItem sender ) : void

Sets explosive melee

SetFillAmmoClip ( MenuItem sender ) : void

Sets fill ammo & clip

SetFireAmmo ( MenuItem sender ) : void

Sets fire ammo

SetHasWeapon ( MenuItem sender ) : void

Sets has weapon

SetInfiniteAmmo ( MenuItem sender ) : void

Sets infinite ammo

SetNoReload ( MenuItem sender ) : void

Sets no reload

SetPermanentParachute ( MenuItem sender ) : void

Sets permanent parachute

SetVehicleRocket ( MenuItem sender ) : void

Sets vehicle rocket

SetWeaponTint ( MenuItem sender ) : void

Sets weaopn tint

UpdateFeatures ( ) : void

Updates weapon features

Private Methods

Method Description
GenerateSpecificWeaponMenu ( Menu menu, WeaponData weapon ) : void

Method Details

ApplyWeaponSet() public static method

Applies weapon set to player
public static ApplyWeaponSet ( WeaponSet set ) : void
set GTAVBETrainerDotNet.Weapon.WeaponSet Weapon set
return void

GetAllWeapons() public static method

Gets all weapons
public static GetAllWeapons ( MenuItem sender ) : void
sender GTAVBETrainerDotNet.Menu.MenuItem Source menu item
return void

GetCurrentWeaponSet() public static method

Gets the current player's weapon set
public static GetCurrentWeaponSet ( ) : WeaponSet
return GTAVBETrainerDotNet.Weapon.WeaponSet

HasAttachment() public static method

Does player's specified weapon has the specified attachment?
public static HasAttachment ( int weaponHash, int attachmentHash ) : bool
weaponHash int Weapon hash
attachmentHash int Attachment hash
return bool

HasWeapon() public static method

Does player have this weapon
public static HasWeapon ( int weaponHash ) : bool
weaponHash int Weapon hash
return bool

InitFeatures() public static method

Initializes features
public static InitFeatures ( ) : void
return void

PreEnterSpecificWeaponMenu() public static method

Pre-enters specific weapn menu
public static PreEnterSpecificWeaponMenu ( MenuItem sender ) : void
sender GTAVBETrainerDotNet.Menu.MenuItem Source menu item
return void

SetAttachment() public static method

Sets attachment
public static SetAttachment ( MenuItem sender ) : void
sender GTAVBETrainerDotNet.Menu.MenuItem Source menu item
return void

SetExplosiveAmmo() public static method

Sets explosive ammo
public static SetExplosiveAmmo ( MenuItem sender ) : void
sender GTAVBETrainerDotNet.Menu.MenuItem Source menu item
return void

SetExplosiveMelee() public static method

Sets explosive melee
public static SetExplosiveMelee ( MenuItem sender ) : void
sender GTAVBETrainerDotNet.Menu.MenuItem Source menu item
return void

SetFillAmmoClip() public static method

Sets fill ammo & clip
public static SetFillAmmoClip ( MenuItem sender ) : void
sender GTAVBETrainerDotNet.Menu.MenuItem Source menu item
return void

SetFireAmmo() public static method

Sets fire ammo
public static SetFireAmmo ( MenuItem sender ) : void
sender GTAVBETrainerDotNet.Menu.MenuItem Source menu item
return void

SetHasWeapon() public static method

Sets has weapon
public static SetHasWeapon ( MenuItem sender ) : void
sender GTAVBETrainerDotNet.Menu.MenuItem Source menu item
return void

SetInfiniteAmmo() public static method

Sets infinite ammo
public static SetInfiniteAmmo ( MenuItem sender ) : void
sender GTAVBETrainerDotNet.Menu.MenuItem Source menu item
return void

SetNoReload() public static method

Sets no reload
public static SetNoReload ( MenuItem sender ) : void
sender GTAVBETrainerDotNet.Menu.MenuItem Source menu item
return void

SetPermanentParachute() public static method

Sets permanent parachute
public static SetPermanentParachute ( MenuItem sender ) : void
sender GTAVBETrainerDotNet.Menu.MenuItem Source menu item
return void

SetVehicleRocket() public static method

Sets vehicle rocket
public static SetVehicleRocket ( MenuItem sender ) : void
sender GTAVBETrainerDotNet.Menu.MenuItem Source menu item
return void

SetWeaponTint() public static method

Sets weaopn tint
public static SetWeaponTint ( MenuItem sender ) : void
sender GTAVBETrainerDotNet.Menu.MenuItem Source menu item
return void

UpdateFeatures() public static method

Updates weapon features
public static UpdateFeatures ( ) : void
return void

Property Details

ExplosiveAmmo public static property

public static bool ExplosiveAmmo
return bool

ExplosiveMelee public static property

public static bool ExplosiveMelee
return bool

FireAmmo public static property

public static bool FireAmmo
return bool

InfiniteAmmo public static property

public static bool InfiniteAmmo
return bool

NoReload public static property

public static bool NoReload
return bool

PermanentParachute public static property

public static bool PermanentParachute
return bool

VehicleRocket public static property

public static bool VehicleRocket
return bool