project-navigation
Personal tools

Author Topic: Rocket launcher secondary ammo  (Read 4449 times)

Offline Thrashard96

  • Squad Leader
  • ****
  • Posts: 260
    • View Profile
Rocket launcher secondary ammo
« on: July 22, 2010, 06:49:05 pm »
Hi, i was wondering how to add secondary ammo for rocket launcher, but how to do it? I made the rpg_ammo2 and firemodes for rpg2 from the grenade laucher... Anyone knows what is wrong?

Offline geever

  • Project Coder
  • PHALANX Commander
  • ***
  • Posts: 2561
    • View Profile
Re: Rocket launcher secondary ammo
« Reply #1 on: July 22, 2010, 07:28:19 pm »
Hi, i was wondering how to add secondary ammo for rocket launcher, but how to do it? I made the rpg_ammo2 and firemodes for rpg2 from the grenade laucher... Anyone knows what is wrong?

without looking into your script changes: no. noone will.

-geever

Offline Thrashard96

  • Squad Leader
  • ****
  • Posts: 260
    • View Profile
Re: Rocket launcher secondary ammo
« Reply #2 on: July 22, 2010, 07:58:07 pm »
in the file there is every mod i made. hope you try it.

Offline geever

  • Project Coder
  • PHALANX Commander
  • ***
  • Posts: 2561
    • View Profile
Re: Rocket launcher secondary ammo
« Reply #3 on: July 22, 2010, 10:19:44 pm »
Hi, i was wondering how to add secondary ammo for rocket launcher, but how to do it? I made the rpg_ammo2 and firemodes for rpg2 from the grenade laucher... Anyone knows what is wrong?

LOOL!! We have a real cheater-lame here:

Code: [Select]
aircraft craft_drop_firebird
 {
        param {
-               speed           7
-               maxspeed        10
-               shield          0
-               ecm                     70
-               damage          200
-               accuracy        70
-               range           240
+               speed           700
+               maxspeed        1000
+               shield          100
+               ecm                     100
+               damage          500
+               accuracy        100
+               range           1000
        }
        name            "_Firebird-class Dropship"
        defaultname     "_Firebird D"
        type            transporter
        model           "geoscape/drop_firebird"
-       price           20000
+       price           2
        building        building_hangar
        numteam         8
        size            2

Super dropship for 2c! The diff is full with such silly changes. Sorry I can hardly take you seriously  after that. You should have noticed the
Code: [Select]
Com_EParseValue: a V_RELABS (relative) value should only be between 0.00..1 and 2.0 (file: 'src/common/scripts.c', line: 1699)warnings they mean you gave invalid values to some params. V_RELABS used for damage, accuracy, ecm, speed, maxspeed and fuelsize parameters as I see.


back to your problem: It is that you made an rpg_ammo2 ammunition which works with rpg2 weapon that doesn't exist. On a sidenote: you'll need a tech definition to use the weapon in game (campaign), otherwise will probably get errors.

-geever

Offline Thrashard96

  • Squad Leader
  • ****
  • Posts: 260
    • View Profile
Re: Rocket launcher secondary ammo
« Reply #4 on: July 23, 2010, 09:03:24 am »
LOOL!! We have a real cheater-lame here:

Code: [Select]
aircraft craft_drop_firebird
 {
        param {
-               speed           7
-               maxspeed        10
-               shield          0
-               ecm                     70
-               damage          200
-               accuracy        70
-               range           240
+               speed           700
+               maxspeed        1000
+               shield          100
+               ecm                     100
+               damage          500
+               accuracy        100
+               range           1000
        }
        name            "_Firebird-class Dropship"
        defaultname     "_Firebird D"
        type            transporter
        model           "geoscape/drop_firebird"
-       price           20000
+       price           2
        building        building_hangar
        numteam         8
        size            2

Super dropship for 2c! The diff is full with such silly changes. Sorry I can hardly take you seriously  after that. You should have noticed the
Code: [Select]
Com_EParseValue: a V_RELABS (relative) value should only be between 0.00..1 and 2.0 (file: 'src/common/scripts.c', line: 1699)warnings they mean you gave invalid values to some params. V_RELABS used for damage, accuracy, ecm, speed, maxspeed and fuelsize parameters as I see.


back to your problem: It is that you made an rpg_ammo2 ammunition which works with rpg2 weapon that doesn't exist. On a sidenote: you'll need a tech definition to use the weapon in game (campaign), otherwise will probably get errors.

-geever

1. I did modify the aircraft because i hate alien fighter ships, which mess with my REALLY experienced teams, so i added speed and accuracy, maximized ecm (i don't even know what it is), overpowered shields and overmaximized shiva cannon.

2. I will try to fix it.