mirror of
https://github.com/1dot13/source.git
synced 2026-08-05 14:00:23 +02:00
New Feature: Bombs can now be armed from the inventory. This requires an attached detonator or remote detonator. (by Flugente)
- they can then be thrown, dropped or whatever else you can think of. - to arm/disarm a bomb, enter the Enhanced description box and click on the item's picture. - timed bombs will blow up once the time is up, wether they are in the sector or in your inventory. Remote bombs can be also detonated in your inventory. - see this thread for more info: http://www.bears-pit.com/board/ubbthreads.php/topics/305534.html#Post305534 git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@5327 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -449,7 +449,8 @@ INT32 AddItemToWorld( INT32 sGridNo, OBJECTTYPE *pObject, UINT8 ubLevel, UINT16
|
||||
gWorldItems[ iItemIndex ].object = *pObject;
|
||||
|
||||
// Add a bomb reference if needed
|
||||
if (usFlags & WORLD_ITEM_ARMED_BOMB)
|
||||
// Flugente: we can arm bombs in our inventory and then throw them out, which will cause them to be added to the world. Only way to identify those items is via a check for their bDetonatorType
|
||||
if (usFlags & WORLD_ITEM_ARMED_BOMB || ( Item[pObject->usItem].usItemClass & (IC_BOMB) && ( (*pObject)[0]->data.misc.bDetonatorType == BOMB_TIMED ) || ( (*pObject)[0]->data.misc.bDetonatorType == BOMB_REMOTE ) ) )
|
||||
{
|
||||
iReturn = AddBombToWorld( iItemIndex );
|
||||
if (iReturn == -1)
|
||||
|
||||
Reference in New Issue
Block a user