Author Topic: SCP Avenger cannon  (Read 5142 times)

0 Members and 1 Guest are viewing this topic.

Offline Woolie Wool

  • 211
  • Fire main batteries
Since the Avenger cannon in FS1 and FSPort is so completely different from the description in the tech room, I made one with SCP features that more closely approximates the description of the Avenger (no autoaim though):

Code: [Select]
$Name: @Avenger
+Title: XSTR("GTW-15 Avenger Cannon", 3270)
+Description:
XSTR(
"Medium Energy Usage
Level 3 Hull Damage
Level 2 Shield Damage
", 3271)
$end_multi_text
+Tech Title: XSTR("GTW-15 Avenger Cannon", 3272)
+Tech Anim: cb_avenger
+Tech Description:
XSTR(
"A rapid-fire, computer-controlled radar and gun system - capable of firing at a rate of more than 4500 rounds per minute - used primarily for close-defense situations - uses closed-loop radar technology to locate, identify, and direct a stream of highly destructive 45mm projectiles to the target. With the advent of shield technology, the GTW-15 is preferred over the ML-16 in any ship that can carry it. It's extra damage against hulls make it one of the best anti cruiser weapons. It has also proven very effective against Vasudan fighters. However, it's substandard anti-shield capabilities make it a poor choice for dogfighting Shivans, although far better than the ML-16.", 3273)
$end_multi_text
$Model File: none
@Laser Bitmap: lamprey_bitmap
@Laser Glow: none
@Laser Color: 140, 140, 60
@Laser Color2: 140, 140, 60
@Laser Length: 0.2
@Laser Head Radius: 0.2
@Laser Tail Radius: 0.2
$Mass: 0.032 ;; adjusted for higher rate of fire
$Velocity: 1000.0 ;; speed of the weapon (initially) -- may or may not change
$Fire Wait: 0.02 ;; It's only 3000 rpm instead of 4500, but 4500 rpm leads to a repeating decimal for a firewait
$Damage: 1
$Armor Factor: 1.6 ;; does damage at an identical rate to the original Avenger
$Shield Factor: 1.088 ;; damage rate identical to original Avenger
$Subsystem Factor: 0.448 ;; damage rate identical to original Avenger
$Lifetime: 1.9
$Energy Consumed: 0.024 ;; Energy used at an identical rate to original Avenger
$Cargo Size: 0.0 ;;
$Homing: NO
$LaunchSnd: 163 ;;
$ImpactSnd: 85 ;;
$Flags: ( "player allowed" "stream" )
$Trail: ;; Trail cannot be set if Exhaust is set
+Start Width:           0.2                                      ;; Width of trail nearest missile
+End Width:             0.01                                       ;; Width of trail before it "evaporates"
+Start Alpha:       1.0
+End Alpha: 0.0
+Max Life: 0.1                                       ;; how many seconds before trail disappears
+Bitmap: hornet_bitmap ;; Bitmap used to draw trail
$Icon: icon_avenger
$Anim: avenger
$Impact Explosion: Maxim_Impact
$Impact Explosion Radius: 1.0
$Fof: 2.0


It is not yet completed or thoroughly tested. Also note that the weapon sounds reference entries in the FSPort weapons.tbl, not the base FS2 one. Enjoy.
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 Woolie Wool

  • 211
  • Fire main batteries
Any comments on balance, playability, appearance, etc.?
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 Carl

  • Render artist
  • 211
    • http://www.3dap.com/hlp/
if it leads to a repeating decimal, just round it to the third or fourth digit. FS2 can handle values less than the hundredths place i believe.
"Gunnery control, fry that ****er!" - nuclear1

 

Offline StratComm

  • The POFressor
  • 212
  • Cameron Crazy
    • http://www.geocities.com/cek_83/index.html
It's at worst floating point, and it will round but the degree of precision is something like 7-8 decimal places.  Believe it or not, 0.02 isn't actually going to wind up in memory like that.

However, I'd like to point out that the game's not going to like you at all.  If you've got 2 firepoints and you hold down the trigger for 1 second you're going to generate 100 shots, all of which must be tracked and checked for colissions.  As you add things like this into the mission, the game will either slow to a crawl or stop detecting colissions properly.
who needs a signature? ;)
It's not much of an excuse for a website, but my stuff can be found here

"Holding the last thread on a page comes with an inherent danger, especially when you are edit-happy with your posts.  For you can easily continue editing in points without ever noticing that someone else could have refuted them." ~Me, on my posting behavior

Last edited by StratComm on 08-23-2027 at 08:34 PM

 

Offline TrashMan

  • T-tower Avenger. srsly.
  • 213
  • God-Emperor of your kind!
    • FLAMES OF WAR
Strangely I have miniguns in game and the game never slowed down for me (and I think they are even faster than this one)...
Nobody dies as a virgin - the life ****s us all!

You're a wrongularity from which no right can escape!

 

Offline StratComm

  • The POFressor
  • 212
  • Cameron Crazy
    • http://www.geocities.com/cek_83/index.html
I doubt you've tested them thuroughly enough then.  This used to happen when you had too many asteroids; lasers aren't as hard to track because you don't have to check collisions against them, but once you get too many things onscreen the game starts to get sloppy.  Make a cargo container with a ton of hitpoints (so the game doesn't arbitrarily scale it like a capital ship, otherwise anything would work) and fire your gun at it from the ship in your mod with the max number of guns in a primary bank from maximum range.  I can almost promise that the damage done over time wouldn't add up to what you defined in the table because some shots aren't being picked up.  As I said, the more ships that mount this type of gun in a mission the worse the problem gets, and it's more dependent on the speed of a user's computer than almost any other performance concern in FSO.  The slower your comp, the fewer shots have to be present for this to happen.
who needs a signature? ;)
It's not much of an excuse for a website, but my stuff can be found here

"Holding the last thread on a page comes with an inherent danger, especially when you are edit-happy with your posts.  For you can easily continue editing in points without ever noticing that someone else could have refuted them." ~Me, on my posting behavior

Last edited by StratComm on 08-23-2027 at 08:34 PM

 

Offline Woolie Wool

  • 211
  • Fire main batteries
If I run into serious poblems with this weapon, I'll increase the firewait to 0.05 or maybe even 0.1.
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 Solatar

  • 211
Might add a "stream" tag and adjust firewaits to work with that. That way you can say it fires 4500rpm, BUT it only fires from one barrel at a time (half the shots).

EDIT: Meant "cycle:
« Last Edit: February 16, 2005, 05:59:47 pm by 691 »

 

Offline Woolie Wool

  • 211
  • Fire main batteries
It already has a "stream" flag.
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 Solatar

  • 211
My mistake, I meant to say "cycle".

 

Offline Trivial Psychic

  • 212
  • Snoop Junkie
You might want to make it a ballistic primary.
The Trivial Psychic Strikes Again!

 

Offline Flaser

  • 210
  • man/fish warsie
IMHO a possible workaround would be handling streams of bullet as one projectile and do collision check for the mass of them.

An better alternative would be the ability to check how long a ship is in this stream just as it is down with beams AFAIK.

That way you can have weapons with massive ROF, and instead a full blown collision check for each bullet, you'd handle a stream object.
"I was going to become a speed dealer. If one stupid fairytale turns out to be total nonsense, what does the young man do? If you answered, “Wake up and face reality,” you don’t remember what it was like being a young man. You just go to the next entry in the catalogue of lies you can use to destroy your life." - John Dolan

 

Offline StratComm

  • The POFressor
  • 212
  • Cameron Crazy
    • http://www.geocities.com/cek_83/index.html
With the proper application of particles, that might actually be possible without major reworking.  It'd make tweaking a royal pain, but it should certainly be doable.
who needs a signature? ;)
It's not much of an excuse for a website, but my stuff can be found here

"Holding the last thread on a page comes with an inherent danger, especially when you are edit-happy with your posts.  For you can easily continue editing in points without ever noticing that someone else could have refuted them." ~Me, on my posting behavior

Last edited by StratComm on 08-23-2027 at 08:34 PM

 

Offline Bobboau

  • Just a MODern kinda guy
    Just MODerately cool
    And MODest too
  • 213
I have consitered makeing a waeon type that used the trail code for rendering, it would let out a solid sream and damage would be based on how much of the stream the ship intersected. the big thing that has stoped me is it would requier spliting these streams up into more (posably MANY more) streams when they hit a ship and only part of the stream hits
Bobboau, bringing you products that work... in theory
learn to use PCS
creator of the ProXimus Procedural Texture and Effect Generator
My latest build of PCS2, get it while it's hot!
PCS 2.0.3


DEUTERONOMY 22:11
Thou shalt not wear a garment of diverse sorts, [as] of woollen and linen together

 

Offline terren

  • 27
I allready did this for personal use, it looks realy cool when you set it so each 'shot' looks like about 8 or 10 bullets.  then I went and added player controled AAA beams to an interseptor, and slash beams to a bomber.  although I have yet to test those.  I also tried making the avenger balistic so it could track it's target, but it just keeps homing in on them instead of flying passed.  

Can I get a 'Homing lifetime' option?
Ie, homes in on target for 3 seconds, then goes dumbfire.
Proud user of wings 3-D

                 
Mad? Oh yes quite mad.

 

Offline Woolie Wool

  • 211
  • Fire main batteries
Quote
Originally posted by Trivial Psychic
You might want to make it a ballistic primary.


But then I'd have to alter every ship table entry to give ships weapon ammo.
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 Solatar

  • 211
Quote
Originally posted by terren
I allready did this for personal use, it looks realy cool when you set it so each 'shot' looks like about 8 or 10 bullets.  then I went and added player controled AAA beams to an interseptor, and slash beams to a bomber.  although I have yet to test those.  I also tried making the avenger balistic so it could track it's target, but it just keeps homing in on them instead of flying passed.  

Can I get a 'Homing lifetime' option?
Ie, homes in on target for 3 seconds, then goes dumbfire.



You made it home as a primary?


wow...this is the widest reply box I've ever seen...

 

Offline Woolie Wool

  • 211
  • Fire main batteries
Blame the tech description for the wiiiiide reply box.
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 Solatar

  • 211
....
take it out and put *snip* or something...what I usually do on forums.:D

  

Offline terren

  • 27
In honsety I dont remember if it was a primary or secondary, I think I gave it a POF file as apposed to a laserglow, if I'm remembering the right weapon. I did about 4 or 5 avengers trying to get one working.
Proud user of wings 3-D

                 
Mad? Oh yes quite mad.