chimeric929 Posted January 6, 2011 Share Posted January 6, 2011 is there a way to switch the gun with another like a hotkey but only switching between the two weapons? iem16 semi --> m16 -->fullorshotgun one barrel fires --> shotgun both barrels bonus if it can be done without playing the weapon swap anim. Link to comment Share on other sites More sharing options...
thc1234 Posted January 6, 2011 Share Posted January 6, 2011 NVSE required short nFrame begin gamemode ref rWeaponNew if GetKeyPressed 56 && nFrame < 60 set nFrame to 0 if player.GetEquipped Shotgun1 ; shotgun 1 to shotgun 2 set rWeaponNew to Shotgun2 elseif player.GetEquipped Shotgun2 ; shotgun 2 to shotgun 1 set rWeaponNew to Shotgun1 endif ; more wepon checks... if rWeaponNew != 0 ; equip selected weapon to player assuming he have it in inventory. if not, this will get slightly compilated and will require item removal, addition, messing with health % item counts etc. too lazy to write that now. Not sure if it's possible to disable equip animation player.EquipItem rWeaponNew endif endif set nFrame to nFrame+1 end Link to comment Share on other sites More sharing options...
chimeric929 Posted January 10, 2011 Author Share Posted January 10, 2011 NVSE required short nFrame begin gamemode ref rWeaponNew if GetKeyPressed 56 && nFrame < 60 set nFrame to 0 if player.GetEquipped Shotgun1 ; shotgun 1 to shotgun 2 set rWeaponNew to Shotgun2 elseif player.GetEquipped Shotgun2 ; shotgun 2 to shotgun 1 set rWeaponNew to Shotgun1 endif ; more wepon checks... if rWeaponNew != 0 ; equip selected weapon to player assuming he have it in inventory. if not, this will get slightly compilated and will require item removal, addition, messing with health % item counts etc. too lazy to write that now. Not sure if it's possible to disable equip animation player.EquipItem rWeaponNew endif endif set nFrame to nFrame+1 end thank you Link to comment Share on other sites More sharing options...
Corejob Posted January 21, 2011 Share Posted January 21, 2011 You can just change the firemod using NVSE without changing weapons. just use setweaponisautomatic and set the value as 0 or 1 Link to comment Share on other sites More sharing options...
Recommended Posts