little updates

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7227 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Bukz
2013-02-17 12:10:38 +00:00
parent ef4cbe73a5
commit a48611cd0b
+10 -7
View File
@@ -48,15 +48,16 @@ const loadcustomprimary [
]
]
const DEFAULT_PRIMARIES ["MTP-57 Assault Rifle" "A-ARD/10 Submachine Gun" "Precision Tech AD-81 Sniper Rifle" "V-19 Combat Shotgun" "TMP-M&A Carbine"]
const DEFAULT_PRALIASES [AR SMG SNIPER SHOTGUN CARBINE]
const DEFAULT_PRMDLDIRS [assault subgun sniper shotgun carbine]
newmenu Weapons
menumdl weapons/assault/menu mapmodel 75 12
menuitem [MTP-57 Assault Rifle] [ nextprimary $AR; loadcustomprimary $AR 0; echo MTP-57 Assault Rifle selected ] [ chmenumdl Weapons weapons/assault/menu mapmodel 75 12 ]
menuitem [A-ARD/10 Submachine Gun] [ nextprimary $SMG; loadcustomprimary $SMG 0; echo A-ARD/10 Submachine Gun selected ] [ chmenumdl Weapons weapons/subgun/menu mapmodel 75 12 ]
menuitem [Precision Tech AD-81 Sniper Rifle] [ nextprimary $SNIPER; loadcustomprimary $SNIPER 0; echo Precision Tech AD-81 Sniper Rifle selected ] [ chmenumdl Weapons weapons/sniper/menu mapmodel 75 12 ]
menuitem [V-19 Combat Shotgun] [ nextprimary $SHOTGUN; loadcustomprimary $SHOTGUN 0; echo V-19 Combat Shotgun selected ] [ chmenumdl Weapons weapons/shotgun/menu mapmodel 75 12 ]
menuitem [TMP-M&A Carbine] [ nextprimary $CARBINE; loadcustomprimary $CARBINE 0; echo TMP-M&A Carbine selected ] [ chmenumdl Weapons weapons/carbine/menu mapmodel 75 12 ]
// menuitem [Combat Pistol] [ nextprimary $CPISTOL; loadcustomprimary $CPISTOL 0; echo Combat Pistol selected ] [ chmenumdl Weapons weapons/cpistol/menu mapmodel 75 12 ]
loop gwm (listlen $DEFAULT_PRIMARIES) [
execute (format [menuitem [%1] [ nextprimary (getalias %2); loadcustomprimary (getalias %2) 0; echo %1 selected ] [ chmenumdl Weapons weapons/%3/menu mapmodel 75 12 ]] (at $DEFAULT_PRIMARIES $gwm) (at $DEFAULT_PRALIASES $gwm) (at $DEFAULT_PRMDLDIRS $gwm))
]
// menuitem [] -1
// menuitem [Alternative weapons...] [ showmenu [Alternative Weapons] ]
@@ -65,9 +66,11 @@ menuitem [TMP-M&A Carbine] [ nextprimary $CARBINE; loadcustomp
// menumdl weapons/assault2/menu mapmodel 75 12
// menuitem [AR-15 Assault Rifle] [ nextprimary $AR; loadcustomprimary $AR; echo AR-15 Assault Rifle selected ] [ chmenumdl [Alternative Weapons] weapons/assault2/menu mapmodel 75 12 ]
// menuitem [Mac11 Submachine Gun] [ nextprimary $SMG; loadcustomprimary $SMG; echo Mac11 Submachine Gun selected ] [ chmenumdl [Alternative Weapons] weapons/subgun2/menu mapmodel 75 12 ]
// menuitem [Dragunov SVD Sniper Rifle] [ nextprimary $SNIPER; loadcustomprimary $SNIPER; echo Dragunov SVD Sniper Rifle ] [ chmenumdl [Alternative Weapons] weapons/sniper2/menu mapmodel 75 12 ]
// menuitem [Dragunov SVD Sniper Rifle] [ nextprimary $SNIPER; loadcustomprimary $SNIPER; echo Dragunov SVD Sniper Rifle selected ] [ chmenumdl [Alternative Weapons] weapons/sniper2/menu mapmodel 75 12 ]
// menuitem [Sawed-off Shotgun] [ nextprimary $SHOTGUN; loadcustomprimary $SHOTGUN; echo Sawed-off Shotgun selected ] [ chmenumdl [Alternative Weapons] weapons/shotgun2/menu mapmodel 75 12 ]
// menuitem [Marlin Guide Carbine 1895] [ nextprimary $CARBINE; loadcustomprimary $CARBINE; echo Marlin Guide Carbine 1895 selected ] [ chmenumdl [Alternative Weapons] weapons/carbine2/menu mapmodel 75 12 ]
// menuitem [] -1
// menuitem [Other alternative weapons...] [ showmenu [Alternative Weapon Models] ]
newmenu CLA