mirror of
https://github.com/1dot13/source.git
synced 2026-08-12 14:10:23 +02:00
This revision requires GameDir 1873 to work because of a new icon in ItemInfoAdvancedIcons.sti!!!
- Weapons.xml tags <bRecoilX> and <bRecoilY> are now FLOAT type values. This allows to differentiate weapons by smaller steps. - Items.xml tags <RecoilModifierX> and <RecoilModifierY> are now FLOAT types as well. - Items.xml tag <PercentRecoilModifier> will now be displayed in UDB advanced tab. - Item_Settings.ini has new modifiers for gun type specific <bRecoilX> and <bRecoilY>. This allows modders to quickly adjust recoil values for any gun type. - fixed UDB description for <RecoilModifierX> and <RecoilModifierY> - All recoil calculations now use FLOAT values for more precision. git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6613 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
+2
-2
@@ -1201,12 +1201,12 @@ itemEndElementHandle(void *userData, const XML_Char *name)
|
||||
else if(strcmp(name, "RecoilModifierX") == 0)
|
||||
{
|
||||
pData->curElement = ELEMENT;
|
||||
pData->curItem.RecoilModifierX = (INT16) atol(pData->szCharData);
|
||||
pData->curItem.RecoilModifierX = (FLOAT) atof(pData->szCharData);
|
||||
}
|
||||
else if(strcmp(name, "RecoilModifierY") == 0)
|
||||
{
|
||||
pData->curElement = ELEMENT;
|
||||
pData->curItem.RecoilModifierY = (INT16) atol(pData->szCharData);
|
||||
pData->curItem.RecoilModifierY = (FLOAT) atof(pData->szCharData);
|
||||
}
|
||||
else if(strcmp(name, "PercentRecoilModifier") == 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user