Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 12/27/2020 in Posts

  1. The code for the disintegration already exists for the fifth shot (assuming the weapon is coded in gLua), and if anything, adding the disintegration to all shots would simplify the code to that weapon, since it currently has to check the state of the magazine on the killshot to determine whether or not to apply the effects. If changed to be applied to all shots, it removes the if statement. Coding Examples: (syntax will prolly be wrong, this is just to show the process) Current Code- ammo = 5; onKill : if(ammo>1) [ ammo = ammo -1; ] else [ applyEffect(disintegrate, killedPlayer); ammo= ammo - 1;] New Code ammo = 5; onKill : applyEffect(disintegrate, killedPlayer); SInce the disintegrate effect is tied to the combine energy ball, I believe the multiple effects that are mixed to make it are bundled as a single function/effect
    1 point
This leaderboard is set to New York/GMT-04:00
×
×
  • Create New...