How to Shoot Different Kinds of RPGs

From EDukeWiki
Revision as of 20:51, 13 March 2007 by 189.6.242.140 (talk)
Jump to navigation Jump to search

When the command shoot is used for RPG it doesn't work correcly, because the actor RPG is hard-coded.

If you already have used it, probably you have got problems, and you report or not it.


Now, let's explain a little about:

RPG shot by player RPG weapon:               sizeat 14 14, strength 140~
RPG shot by player Devastator weapon:        sizeat 7 7, strength 140/4~, no SMALLSMOKE trail, spawn small EXPLOSION2
RPG shot by Commander and any other actor:   sizeat 30 30, strength 140/4~
RPG shot by Overlord:                        sizeat 42 42, strength 140~
RPG shot by Cycloid Emperor:                 sizeat 24 24, strength 140~, no SMALLSMOKE trail

Notes:

strength in case become the projectile damage, original Duke projectiles aren't like the ones from defineprojectile command.

Devastator strength is not set by actor DEVISTATORBLAST FREEZETHROWER_WEAPON_STRENGTH as you can see in GAME.CON, it is RPG_WEAPON_STRENGTH (defined in USER.CON) divided by 4.


So, what you need to do is:


  • If you want to one actor shoot the Commander rocket (it is not the RPG shot by player) just use default shoot RPG.
  • If you want to one actor shoot the player RPG:
onevent EVENT_GAME
  ifactor RPG
    ifspawnedby MYACTOR
      sizeat 14 14
endevent

onevent EVENT_EGS
  ifactor RPG
    ifspawnedby MYACTOR
    {
      addstrength RPG_WEAPON_STRENGTH
      addstrength RPG_WEAPON_STRENGTH
      addstrength RPG_WEAPON_STRENGTH
    }
endevent

Note: Addstrength used to opposite the default RPG_WEAPON_STRENGTH/4. Change the sizeat if you want the Overlord like rocket - nothing can be done about Cycloid Emperor rocket, because you cannot kill the SMALLSMOKE trail with sizeat)

  • If you want one some actor shoot Devastators:
onevent EVENT_GAME
  ifactor RPG
    ifspawnedby MYACTOR
      sizeat 7 7
endevent

Note: If sizeat is set to 7 7, the game automatically kill the SMALLSMOKE trail and EXPLOSION2 become small.