This is the mechanism responsible for dropping shocks when other Ion weapons hit an enemy. Here's what it looks like when you shoot it from a gun with no Ion bolt bound to it.
you don't really fire your gun in stead you spawn wierd things on the grownd and you reload afer every bullet fired why ? this is a bit too hard to understand mabye you can meak some kind of guide it would be cool
you don't really fire your gun in stead you spawn wierd things on the grownd and you reload afer every bullet fired why ? this is a bit too hard to understand mabye you can meak some kind of guide it would be cool
andrey91pireu 1 year ago
@andrey91pireu The gun is set to have no clip size to stop its refire speed of 0 from dumping the clip on the same spot.
It actually does fire, but the bullets are frozen into the 'exploding' state that gives ion bolts their shock characteristics.
irobeth 1 year ago
can you tell me what i have to do to make that happen ?
andrey91pireu 1 year ago
@andrey91pireu um.
The bullet struct has a few counters in it: float fadeout; float counter;
Fadeout determines the 'state' of the ion weapon shot, counter I force to 0.
If fadeout is within a certain range, it delivers this ion shock.
irobeth 1 year ago