mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
- new item flag NO_METAL_DETECTION (131072) makes mines an bombs undetectable via metal detector. Also works on action item bombs and mines. Sparing usage is advised.
- new item flag JUMP_GRENADE (262144) increases the explosion heigth of explosives, can be used to simulate bouncing grenades or jumping mines. git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@5656 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -337,6 +337,16 @@ void InternalIgniteExplosion( UINT8 ubOwner, INT16 sX, INT16 sY, INT16 sZ, INT32
|
||||
}
|
||||
// Callahan end
|
||||
|
||||
// Flugente: bouncing grenades/jumping mines explode from about waist heigth, so we add 25 to sZ. However, on order for this to work on roofs, we have to add another 50
|
||||
// if on a roof, as heigth is only added if bLevel = 1 and sZ = 0
|
||||
if ( HasItemFlag(usItem, JUMP_GRENADE) )
|
||||
{
|
||||
sZ += 25;
|
||||
|
||||
if ( bLevel )
|
||||
sZ += ROOF_LEVEL_HEIGHT;
|
||||
}
|
||||
|
||||
ExpParams.sX = sX;
|
||||
ExpParams.sY = sY;
|
||||
ExpParams.sZ = sZ;
|
||||
|
||||
Reference in New Issue
Block a user