Back To Index

MP_BaseShooterWeapon

Jump To Function Definitions


Function Definitions

Select the function name from below to jump directly to it on this page.

Awake
ChildTreeCheck
RecieveNetworkEmptyClip
RecieveNetworkOnChangerPowerCharger
RecieveNetworkOnDisableAim
RecieveNetworkOnEnableAim
RecieveNetworkOnFinishAmmo
RecieveNetworkOnFinishReload
RecieveNetworkOnFullPower
RecieveNetworkReload
RecieveNetworkShot
RecieveNetworkShot
SendNetworkEmptyClip
SendNetworkOnFinishAmmo
SendNetworkOnFinishReload
SendNetworkOnFullPower
SendNetworkReload
SendOnChangerPowerCharger
SendOnDisableAim
SendOnEnableAim
SetArrowView
Start
ViewCheck
WeaponCheck


protected virtual void Awake()

Makes sure there is a valid photon view at the root of this object where the vThirdPersonController is

Expose Value Overrideable Returns
protected True Does not return anything

No parameters

Back To Top


protected virtual void ChildTreeCheck()

Builds a child tree index to the targeted photon view if one is not already made.

Expose Value Overrideable Returns
protected True Does not return anything

No parameters

Back To Top


public virtual void RecieveNetworkEmptyClip()

This is called by the RPC when the networked versions receives a request from the owner for them to play the empty clip effect.

Expose Value Overrideable Returns
public True Does not return anything

No parameters

Back To Top


public virtual void RecieveNetworkOnChangerPowerCharger(float amount)

This is called by the RPC when the networked versions receives a request from the owner for them to play the on change power charger effect.

Expose Value Overrideable Returns
public True Does not return anything

No parameters

Back To Top


public virtual void RecieveNetworkOnDisableAim()

This is called by the RPC when the networked versions receives a request from the owner for them to play the on disable aim effect.

Expose Value Overrideable Returns
public True Does not return anything

No parameters

Back To Top


public virtual void RecieveNetworkOnEnableAim()

This is called by the RPC when the networked versions receives a request from the owner for them to play the on enable aim effect.

Expose Value Overrideable Returns
public True Does not return anything

No parameters

Back To Top


public virtual void RecieveNetworkOnFinishAmmo()

This is called by the RPC when the networked versions receives a request from the owner for them to play the on finished ammo effect.

Expose Value Overrideable Returns
public True Does not return anything

No parameters

Back To Top


public virtual void RecieveNetworkOnFinishReload()

This is called by the RPC when the networked versions receives a request from the owner for them to play the on finished reload effect.

Expose Value Overrideable Returns
public True Does not return anything

No parameters

Back To Top


public virtual void RecieveNetworkOnFullPower()

This is called by the RPC when the networked versions receives a request from the owner for them to play the on full power effect.

Expose Value Overrideable Returns
public True Does not return anything

No parameters

Back To Top


public virtual void RecieveNetworkReload()

This is called by the RPC when the networked versions receives a request from the owner for them to play the reload effect.

Expose Value Overrideable Returns
public True Does not return anything

No parameters

Back To Top


public virtual void RecieveNetworkShot(Vector3 aimPos)

(Legacy) This function now simply returns. This logic has now been integrated into the MP_ShooterMeleeInput component.

Expose Value Overrideable Returns
public True Does not return anything
Parameter Name Description
aimPos Vector3 type, The position to shoot at.

Back To Top


public virtual void RecieveNetworkShot()

(Legacy) This function now simply returns. This logic has now been integrated into the MP_ShooterMeleeInput component.

Expose Value Overrideable Returns
public True Does not return anything

No parameters

Back To Top


public virtual void SendNetworkEmptyClip()

(Legacy) This function simply returns. It is now only kept as to not break current weapons that have unity events referencing this. This logic has now been integrated into the MP_ShooterMeleeInput component.

Expose Value Overrideable Returns
public True Does not return anything

No parameters

Back To Top


public virtual void SendNetworkOnFinishAmmo()

If owner will send an RPC to all networked versions to play the OnFinishAmmo function.

Expose Value Overrideable Returns
public True Does not return anything

No parameters

Back To Top


public virtual void SendNetworkOnFinishReload()

If owner will send an RPC to all networked versiosn to play the OnFinishedReload function.

Expose Value Overrideable Returns
public True Does not return anything

No parameters

Back To Top


public virtual void SendNetworkOnFullPower()

If owner will send an RPC to all networked versions to play the OnFullPower function.

Expose Value Overrideable Returns
public True Does not return anything

No parameters

Back To Top


public virtual void SendNetworkReload()

If owner will send an RPC to all networked versions to reload this weapon

Expose Value Overrideable Returns
public True Does not return anything

No parameters

Back To Top


public virtual void SendOnChangerPowerCharger(float amount)

If owner will send an RPC to all networked versions to play the OnChangerPowerCharger function with the amount of charge.

Expose Value Overrideable Returns
public True Does not return anything

No parameters

Back To Top


public virtual void SendOnDisableAim()

If owner will send an RPC to all networked versions to play the OnDisableAim function.

Expose Value Overrideable Returns
public True Does not return anything

No parameters

Back To Top


public virtual void SendOnEnableAim()

If owner will send an RPC to all networked versions to play the OnEnableAim function.

Expose Value Overrideable Returns
public True Does not return anything

No parameters

Back To Top


public virtual void SetArrowView(vProjectileControl control)

This is called from the OnInstantiateProjectile UnityEvent to set the ArrowView components viewId on the instantiated arrow.

Expose Value Overrideable Returns
public True Does not return anything
Parameter Name Description
control vProjectileControl type, just to make this work with the UnityEvent, not used otherwise.

Back To Top


protected virtual void Start()

Makes sure there is an index tree to the PhotonView for this weapon and it has a valid vShooterWeapon component attached.

Expose Value Overrideable Returns
protected True Does not return anything

No parameters

Back To Top


protected virtual void ViewCheck()

Sets the target PhotonView to the one that is on the root of this object tree where the vThirdPersonController is.

Expose Value Overrideable Returns
protected True Does not return anything

No parameters

Back To Top


protected virtual void WeaponCheck()

Make sure there is a vShooterWeapon component targeted on this weapon.

Expose Value Overrideable Returns
protected True Does not return anything

No parameters

Back To Top