Laser tied to pack -functionality for own mod
I am trying to find out the code what ties the laser rifle to energy pack.
Only thing what I can find is that laser rifle is limited for scout armors only. And then laser rifle is possible to be mounted by scout with any pack, but it is not possible to fire without energy pack. What I have found, is that laser rifle needs 6 energy to be shot. But that does not make any sense for me, because it should be the minimum energy what allows laser to be shooted.
Where/what is the code what ties laser rifle to energy pack?
Only thing what I can find is that laser rifle is limited for scout armors only. And then laser rifle is possible to be mounted by scout with any pack, but it is not possible to fire without energy pack. What I have found, is that laser rifle needs 6 energy to be shot. But that does not make any sense for me, because it should be the minimum energy what allows laser to be shooted.
Where/what is the code what ties laser rifle to energy pack?
Comments
Additionally, there is also some code in inventoryHud.cs which makes it so you can't select any other pack when you have a laser rifle.
I love how you ripped that off of AVM
I mean, who knew code for firing would've been in projectile.cs?
And the inventory hud stuff? Who knew that would've been in inventoryHud.cs?
::)
Edit: Does AVM actually teach scripting, or just a resource for people to use other people's scripts?