JACoders / OpenJK

Community effort to maintain and improve Jedi Academy (SP & MP) + Jedi Outcast (SP only) released by Raven Software
GNU General Public License v2.0
2.03k stars 615 forks source link

make altFire usable on npcs with blaster rifles without the use of scripts #861

Open Journeyman716 opened 8 years ago

Journeyman716 commented 8 years ago

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.

ensiform commented 8 years ago

It was scripted in jk2 as well.

dusty22 commented 8 years ago

I have that in Dusty's Patch. Would it be a suitable OpenJK feature?

ensiform commented 8 years ago

No it changes the gameplay of the stock game. Show the patch you made for it though so I can review.

loadenmb commented 7 years ago

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.