Open Journeyman716 opened 8 years ago
It was scripted in jk2 as well.
I have that in Dusty's Patch. Would it be a suitable OpenJK feature?
No it changes the gameplay of the stock game. Show the patch you made for it though so I can review.
Enabling alt fire via npc config should'n change the game because most NPC shipped with JKA do not use alt fire. It looks like the freature of enabling alt fire in npc file should be included. But it isn't because of a jamp bug or lack of time in development.
Most of them are special class like sniper or Jan and Lando. Only these npc / files use alt fire mode:
grep -rnw base_EXTRACTED/ext_data/npcs/ -e "altFire"
base_EXTRACTED/ext_data/npcs/stofficer.npc:45: altFire 1
base_EXTRACTED/ext_data/npcs/saboteur.npc:5: altFire 1
base_EXTRACTED/ext_data/npcs/saboteur.npc:36: altFire 1
base_EXTRACTED/ext_data/npcs/rax.npc:5: altFire 1
base_EXTRACTED/ext_data/npcs/chewie.npc:4: altFire 0
base_EXTRACTED/ext_data/npcs/jan.npc:5: altFire 1
base_EXTRACTED/ext_data/npcs/saboteursniper.npc:5: altFire 1
base_EXTRACTED/ext_data/npcs/galak.npc:5: altFire 1
base_EXTRACTED/ext_data/npcs/reelo.npc:6: altFire 1
base_EXTRACTED/ext_data/npcs/boba_fett.npc:5: altFire 1
base_EXTRACTED/ext_data/npcs/lando.npc:6: altFire 1
base_EXTRACTED/ext_data/npcs/rodian.npc:7: altFire 1
base_EXTRACTED/ext_data/npcs/rodian.npc:40: altFire 1
base_EXTRACTED/ext_data/npcs/tuskensniper.npc:5: altFire 1
base_EXTRACTED/ext_data/npcs/impcommander.npc:5: altFire 1
base_EXTRACTED/ext_data/npcs/stofficeralt.npc:5: altFire 1
Burst fire mode works for E11 if alt fire is used also. Game is a little harder because some IMPs use secondary fire mode now. Sniper / rocket launcher works too.
If NPC uses alt fire with repeater it's necessary to let them aim higher or reduce shootDistance in NPC file.This caused because repeater alt fire flys a arc. Same to alt fire of flechte weapon.
These NPC need to be rechecked: galak (doesn't spawn in test map) reelo boba_fett
Seems they are shoot normal. Tested in a empty map with NPC only. I can't remember exact shooting behaviour of them and do not have save files. But the game / gameplay should work as usual.
In JKA, blasters no longer rapid fire when set on npcs with the weapon WP_BLASTER, but this was in jk2, was it not? I think it should be readded in jka, as a feat for npcs to be able to rapid fire with blasters again.