mirror of
https://github.com/1dot13/source.git
synced 2026-08-12 14:10:23 +02:00
- new feature: items can be applied to other persons
- reduced cyanide drug effect to more reasonable values git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@5962 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -14955,3 +14955,27 @@ BOOL RandomItemIsTaboo( UINT16 usRandomItem )
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
// Flugente: can item be applied to other people?
|
||||
BOOLEAN ItemCanBeAppliedToOthers( UINT16 usItem )
|
||||
{
|
||||
if ( Item[ usItem ].drugtype )
|
||||
return TRUE;
|
||||
|
||||
if ( Item[ usItem ].gasmask )
|
||||
return TRUE;
|
||||
|
||||
if ( Item[ usItem ].canteen )
|
||||
return TRUE;
|
||||
|
||||
if ( Item[ usItem ].camouflagekit )
|
||||
return TRUE;
|
||||
|
||||
if ( Item[ usItem ].clothestype )
|
||||
return TRUE;
|
||||
|
||||
if ( Item[ usItem ].usItemClass == IC_BOMB )
|
||||
return TRUE;
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user