equal
deleted
inserted
replaced
259 if (GetGearType(gear) == gtHedgehog) then |
259 if (GetGearType(gear) == gtHedgehog) then |
260 -- adds a message saying, e.g. "Hoggy H took 25 points of damage" |
260 -- adds a message saying, e.g. "Hoggy H took 25 points of damage" |
261 AddCaption(GetHogName(gear) .. ' took ' .. damage .. ' points of damage') |
261 AddCaption(GetHogName(gear) .. ' took ' .. damage .. ' points of damage') |
262 end |
262 end |
263 end</code> |
263 end</code> |
264 === <tt>onGearResurrect(gearUid) </tt> === |
264 === <tt>onGearResurrect(gearUid, spawnedVGear) </tt> === |
265 This function is called when a gear is resurrected due to the hog effect `heResurrectable` being set (see `SetEffect`) and/or being an AI hog when the game modifier “AI Survival” (`gfAISurvival`) is active. It is *not* called when a hog was resurrected by the resurrector tool you can use in the game. |
265 This function is called when a gear is resurrected due to the hog effect `heResurrectable` being set (see `SetEffect`) and/or being an AI hog when the game modifier “AI Survival” (`gfAISurvival`) is active. It is *not* called when a hog was resurrected by the resurrector tool you can use in the game. |
|
266 |
|
267 `spawnedVGear` is a visual gear handle of the “resurrection effect”. You can use this handle to modify or delete the resurrection animation. |
266 |
268 |
267 === <tt>onAmmoStoreInit()</tt> === |
269 === <tt>onAmmoStoreInit()</tt> === |
268 This function is called when the game is initialized to request the available ammo and ammo probabilities. Use `SetAmmo` here. |
270 This function is called when the game is initialized to request the available ammo and ammo probabilities. Use `SetAmmo` here. |
269 |
271 |
270 === <tt>onNewAmmoStore(team/clan index, hog index)</tt> === |
272 === <tt>onNewAmmoStore(team/clan index, hog index)</tt> === |