MCPcopy Create free account
hub / github.com/demoth/jake2 / monster_fire_grenade

Method monster_fire_grenade

game/src/main/java/jake2/game/Monster.java:68–75  ·  view source on GitHub ↗

The Moster fires the grenade.

(SubgameEntity self, float[] start,
                                            float[] aimdir, int damage, int speed, int flashtype, GameExportsImpl gameExports)

Source from the content-addressed store, hash-verified

66
67 /** The Moster fires the grenade. */
68 public static void monster_fire_grenade(SubgameEntity self, float[] start,
69 float[] aimdir, int damage, int speed, int flashtype, GameExportsImpl gameExports) {
70 GameWeapon
71 .fire_grenade(self, start, aimdir, damage, speed, 2.5f,
72 damage + 40, gameExports);
73
74 gameExports.gameImports.multicastMessage(start, new MuzzleFlash2Message(self.index, flashtype), MulticastTypes.MULTICAST_PVS);
75 }
76
77 /** The Moster fires the rocket. */
78 public static void monster_fire_rocket(SubgameEntity self, float[] start,

Callers 1

thinkMethod · 0.95

Calls 2

fire_grenadeMethod · 0.95
multicastMessageMethod · 0.65

Tested by

no test coverage detected