Author Topic: Semi-auto fire for Weapons  (Read 2831 times)

0 Members and 1 Guest are viewing this topic.

Offline AndrewofDoom

  • In A.D. 2366 war was beginning
  • 29
  • Permanent yuri goggles.
    • Skype
    • Steam
    • Twitter
Semi-auto fire for Weapons
Would it be possible to add such a flag to the weapons table? You know, so the user has to keep pressing to fire more. The fire wait would be the reload time of the gun then (which would hopefully be low and all, but...). I'd like this, as the Feather 2's gun for the mod I'm helping to make was always semi-auto in the old games, and we wish to keep it that way.
My Efforts:
SF Knight

20:08:19   AndrewofDoom: Though I find it mildly disturbing that a loli is giggling to mass destruction.
20:10:01   Spoon: I find it mildly arrousing
20:10:07   AndrewofDoom: Woah
20:10:15   Spoon: sound like my kind of loli
20:10:21   Spoon: and im not even a lolicon

 

Offline chief1983

  • Still lacks a custom title
  • Moderator
  • 212
  • ⬇️⬆️⬅️⬅️🅰➡️⬇️
    • Skype
    • Steam
    • Twitter
    • Fate of the Galaxy
Re: Semi-auto fire for Weapons
Sounds like it's more of a ship thing than a weapon trait then.  It should be possible, just gotta find a coder who can implement it.
Fate of the Galaxy - Now Hiring!  Apply within | Diaspora | SCP Home | Collada Importer for PCS2
Karajorma's 'How to report bugs' | Mantis
#freespace | #scp-swc | #diaspora | #SCP | #hard-light on EsperNet

"You may not sell or otherwise commercially exploit the source or things you created based on the source." -- Excerpt from FSO license, for reference

Nuclear1:  Jesus Christ zack you're a little too hamyurger for HLP right now...
iamzack:  i dont have hamynerge i just want ptatoc hips D:
redsniper:  Platonic hips?!
iamzack:  lays

 

Offline Nuke

  • Ka-Boom!
  • 212
  • Mutants Worship Me
Re: Semi-auto fire for Weapons
semi-auto seems more like a weapons thing to me.
I can no longer sit back and allow communist infiltration, communist indoctrination, communist subversion, and the international communist conspiracy to sap and impurify all of our precious bodily fluids.

Nuke's Scripting SVN

 

Offline The E

  • He's Ebeneezer Goode
  • Moderator
  • 213
  • Nothing personal, just tech support.
    • Steam
    • Twitter
Re: Semi-auto fire for Weapons
Agreed. This is an attribute of the weapon, not the ship it's mounted on.
If I'm just aching this can't go on
I came from chasing dreams to feel alone
There must be changes, miss to feel strong
I really need lifе to touch me
--Evergrey, Where August Mourns

 

Offline Nuke

  • Ka-Boom!
  • 212
  • Mutants Worship Me
Re: Semi-auto fire for Weapons
if you need a weapon to have a different effect on a particular ship, you could just make an alternate version with a #something (cyclops#short and hornet#weak comes to mind) appended to the name.

speeking of those is there any way to make the loadout screen represent # defined alternate versions with the same icon as their standard version? say you have a cyclops and a cyclops#short, and i make a new bomber that i only want to carry the #short version. is there any way to only display one cyclops icon in the loadout, and have the engine pick the most compatable version while perfering the one without a # character in the name, but will take whatever works.
I can no longer sit back and allow communist infiltration, communist indoctrination, communist subversion, and the international communist conspiracy to sap and impurify all of our precious bodily fluids.

Nuke's Scripting SVN

 

Offline Wanderer

  • Wiki Warrior
  • 211
  • Mostly harmless
Re: Semi-auto fire for Weapons
Burst fire type weapons can already be implemented. Semi automatic appears to have been idea of 'non-stream' weapons but i don't remember those ever having worked like that.
Do not meddle in the affairs of coders for they are soggy and hard to light

 

Offline Dragon

  • Citation needed
  • 212
  • The sky is the limit.
Re: Semi-auto fire for Weapons
I recall that "stream" flag does something with sounds, not the weapons firing.

 

Offline Nuke

  • Ka-Boom!
  • 212
  • Mutants Worship Me
Re: Semi-auto fire for Weapons
^ thats what ive always thought. its so that sounds for rapid fire weapons loop rather than use a different sound channel.
I can no longer sit back and allow communist infiltration, communist indoctrination, communist subversion, and the international communist conspiracy to sap and impurify all of our precious bodily fluids.

Nuke's Scripting SVN

 

Offline Wanderer

  • Wiki Warrior
  • 211
  • Mostly harmless
Re: Semi-auto fire for Weapons
There seems to be many legends about the "stream" flag floating around... perhaps those ought to be cleared...

Code: [Select]
#define  WIF_STREAM (1 << 31) // handled by "trigger down/trigger up" instead of "fire - wait - fire - wait"
Code: [Select]
// if we're firing stream weapons, but the trigger is not down, do nothing
if(stream_weapons && !(shipp->flags & SF_TRIGGER_DOWN)){
return 0;
}
 ..
// if we're firing stream weapons and this is a non stream weapon, skip it
if(stream_weapons && !(winfo_p->wi_flags & WIF_STREAM)){
continue;
}
// if we're firing non stream weapons and this is a stream weapon, skip it
if(!stream_weapons && (winfo_p->wi_flags & WIF_STREAM)){
continue;
}

In short, "stream" flag:
  • does not influence weapon rate of fire
  • does not have much to with sound effects either
Do not meddle in the affairs of coders for they are soggy and hard to light

 

Offline Woolie Wool

  • 211
  • Fire main batteries
Re: Semi-auto fire for Weapons
Is this something for joysticks then?
16:46   Quanto   ****, a mosquito somehow managed to bite the side of my palm
16:46   Quanto   it itches like hell
16:46   Woolie   !8ball does Quanto have malaria
16:46   BotenAnna   Woolie: The outlook is good.
16:47   Quanto   D:

"did they use anesthetic when they removed your sense of humor or did you have to weep and struggle like a tiny baby"
--General Battuta

 

Offline Wanderer

  • Wiki Warrior
  • 211
  • Mostly harmless
Re: Semi-auto fire for Weapons
No... The "stream" flag does pretty much nothing, apart from making the code run the fire primary function twice instead of just once.
Do not meddle in the affairs of coders for they are soggy and hard to light

 

Offline Colonol Dekker

  • HLP is my mistress
  • 213
  • Aken Tigh Dekker- you've probably heard me
    • My old squad sub-domain
Re: Semi-auto fire for Weapons
Burst fire seems a more appropriate term. . .
Campaigns I've added my distinctiveness to-
- Blue Planet: Battle Captains
-Battle of Neptune
-Between the Ashes 2
-Blue planet: Age of Aquarius
-FOTG?
-Inferno R1
-Ribos: The aftermath / -Retreat from Deneb
-Sol: A History
-TBP EACW teaser
-Earth Brakiri war
-TBP Fortune Hunters (I think?)
-TBP Relic
-Trancsend (Possibly?)
-Uncharted Territory
-Vassagos Dirge
-War Machine
(Others lost to the mists of time and no discernible audit trail)

Your friendly Orestes tactical controller.

Secret bomb God.
That one time I got permabanned and got to read who was being bitxhy about me :p....
GO GO DEKKER RANGERSSSS!!!!!!!!!!!!!!!!!
President of the Scooby Doo Model Appreciation Society
The only good Zod is a dead Zod
NEWGROUNDS COMEDY GOLD, UPDATED DAILY
http://badges.steamprofile.com/profile/default/steam/76561198011784807.png

 

Offline chief1983

  • Still lacks a custom title
  • Moderator
  • 212
  • ⬇️⬆️⬅️⬅️🅰➡️⬇️
    • Skype
    • Steam
    • Twitter
    • Fate of the Galaxy
Re: Semi-auto fire for Weapons
So either way, there is no way to implement what was requested.  So it's still valid.  Plus, that comment in the code about 'stream' seems awfully misleading too, almost like it says that it is a semi-auto function, which would be even more inappropriately named.
Fate of the Galaxy - Now Hiring!  Apply within | Diaspora | SCP Home | Collada Importer for PCS2
Karajorma's 'How to report bugs' | Mantis
#freespace | #scp-swc | #diaspora | #SCP | #hard-light on EsperNet

"You may not sell or otherwise commercially exploit the source or things you created based on the source." -- Excerpt from FSO license, for reference

Nuclear1:  Jesus Christ zack you're a little too hamyurger for HLP right now...
iamzack:  i dont have hamynerge i just want ptatoc hips D:
redsniper:  Platonic hips?!
iamzack:  lays

 

Offline Sushi

  • Art Critic
  • 211
Re: Semi-auto fire for Weapons
No... The "stream" flag does pretty much nothing, apart from making the code run the fire primary function twice instead of just once.

If this is the case, why not just remove it?

So either way, there is no way to implement what was requested.  So it's still valid.

Maybe a "semiauto" weapon flag?

 

Offline Nuke

  • Ka-Boom!
  • 212
  • Mutants Worship Me
Re: Semi-auto fire for Weapons
after looking at the burst options in the wiki, i noticed that it had its own flags section. i would put the semi-auto flag there. if not set burst would function normally, if set then you would have to release the trigger before you could fire another burst. of course for a single shot semi-auto, your burst shots would be one. you could also do the m16 3 shots stop and youd have to pull again to fire another burst. if used in the weapon flags instead it should work with burst.
I can no longer sit back and allow communist infiltration, communist indoctrination, communist subversion, and the international communist conspiracy to sap and impurify all of our precious bodily fluids.

Nuke's Scripting SVN

  

Offline chief1983

  • Still lacks a custom title
  • Moderator
  • 212
  • ⬇️⬆️⬅️⬅️🅰➡️⬇️
    • Skype
    • Steam
    • Twitter
    • Fate of the Galaxy
Re: Semi-auto fire for Weapons
As long as the cooldown works as expected with burst, having a burst of one sounds like it should work fine.
Fate of the Galaxy - Now Hiring!  Apply within | Diaspora | SCP Home | Collada Importer for PCS2
Karajorma's 'How to report bugs' | Mantis
#freespace | #scp-swc | #diaspora | #SCP | #hard-light on EsperNet

"You may not sell or otherwise commercially exploit the source or things you created based on the source." -- Excerpt from FSO license, for reference

Nuclear1:  Jesus Christ zack you're a little too hamyurger for HLP right now...
iamzack:  i dont have hamynerge i just want ptatoc hips D:
redsniper:  Platonic hips?!
iamzack:  lays