Author Topic: [WEAPON] Recolored Laser and Plasma Bullet Sprites  (Read 19958 times)

Offline Ran

  • Colonel
  • ****
  • Posts: 196
    • View Profile
[WEAPON] Recolored Laser and Plasma Bullet Sprites
« on: May 18, 2014, 12:31:09 am »
Here I present recolored Laser and Plasma Bullet and Hit sprites, now finally working. :)










Plasma Bullet and Hit sprites:
Red
Blue
Purple

Laser Bullet and Hit sprites (small, medium and large version for each color):
Red
Green
Blue
Purple

Including sample ruleset which has to be adjusted to your weapon of choice.
As the latest nightly Build now allows BulletSprite to be a function of ammo, you can create several ammo types for one weapon which have different bullet colors.

See attached TestGun Mod and testing savegame for a real life demonstration of that, but keep in mind that this gun is for testing purposes only - it will barely do any damage so you can shoot the aliens in all the colors you want. ::)
« Last Edit: October 07, 2014, 12:33:32 am by Ran »

Offline Warboy1982

  • Administrator
  • Commander
  • *****
  • Posts: 2333
  • Developer
    • View Profile
Re: [WEAPON] Recolored Laser and Plasma Bullet Sprites
« Reply #1 on: May 18, 2014, 12:46:56 am »
ooooh it's like a fireworks display!
nice work, and sorry it took so long to get back to you about the palette thing.

Offline civilian

  • Colonel
  • ****
  • Posts: 154
    • View Profile
Re: [WEAPON] Recolored Laser and Plasma Bullet Sprites
« Reply #2 on: May 18, 2014, 04:41:08 pm »
Thanks for the resources!  :)

Offline Dioxine

  • Commander
  • *****
  • Posts: 5412
  • punk not dead
    • View Profile
    • Nocturnal Productions
Re: [WEAPON] Recolored Laser and Plasma Bullet Sprites
« Reply #3 on: May 18, 2014, 07:24:01 pm »
Nice work, I've added some of those to my mod, but I had to brighten them up - blue plasma/laser are the worst offenders, they're way too dark imo. It looks more like a water projectile :)

Offline Aldorn

  • Commander
  • *****
  • Posts: 750
    • View Profile
Re: [WEAPON] Recolored Laser and Plasma Bullet Sprites
« Reply #4 on: May 21, 2014, 01:49:24 am »
I will certainly find an occasion to use this...

Offline davide

  • Commander
  • *****
  • Posts: 565
    • View Profile
Re: [WEAPON] Recolored Laser and Plasma Bullet Sprites
« Reply #5 on: May 21, 2014, 06:57:06 pm »
An idea could be that color is associated to tecnology and size to weapon size

laser is yellow
plasma in blue
gauss is purple

etc

pistol is the small

heavy is the big


Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11408
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: [WEAPON] Recolored Laser and Plasma Bullet Sprites
« Reply #6 on: May 21, 2014, 11:33:24 pm »
laser is yellow
plasma in blue
gauss is purple

Plasma is green! BURN THE HERETIC!!! :P

Offline davide

  • Commander
  • *****
  • Posts: 565
    • View Profile
Re: [WEAPON] Recolored Laser and Plasma Bullet Sprites
« Reply #7 on: May 23, 2014, 06:03:08 pm »
Oh my god ...  :-[

I'm colorblind. :'(

 ;D

Offline davide

  • Commander
  • *****
  • Posts: 565
    • View Profile
Re: [WEAPON] Recolored Laser and Plasma Bullet Sprites
« Reply #8 on: May 23, 2014, 06:06:26 pm »
I need an armour with fire resistance ...

 ???

 ::)

 :o

... new idea ... new armor type with different resistances type !!

Offline HotIceHilda

  • Sergeant
  • **
  • Posts: 30
    • View Profile
Re: [WEAPON] Recolored Laser and Plasma Bullet Sprites
« Reply #9 on: June 15, 2014, 05:38:43 am »
Can these sprites be used for the original plasma and laser weapons in the base game? The read me doesn't really explain what to do with the sprites.

Offline Ran

  • Colonel
  • ****
  • Posts: 196
    • View Profile
Re: [WEAPON] Recolored Laser and Plasma Bullet Sprites
« Reply #10 on: June 17, 2014, 12:45:16 am »
I'm sorry, I tried to explain what to do as good as I could. :-[
Of course you can use these sprites for any weapon including the original ones.
You'd need to edit the ruleset  by adding all features of your weapon of choice except those already existing in the ruleset.
As example I've attached a ruleset which gives you red Heavy Plasma.
Just install Plasma_recolored from 1st posting and replace the included ruleset with the one attached below.

Blue:
Code: [Select]
bulletSprite:12
hitAnimation: 210

Purple:
Code: [Select]
bulletSprite:13
hitAnimation: 220

EDIT: The ruseset missed some important sections, it works now.
« Last Edit: June 17, 2014, 01:08:56 am by Ran »

Offline Ran

  • Colonel
  • ****
  • Posts: 196
    • View Profile
Re: [WEAPON] Recolored Laser and Plasma Bullet Sprites
« Reply #11 on: June 17, 2014, 12:55:25 am »
I present the Test Gun :P
It lets you load different types of ammo which represent all included laser and plasma hit and bullet sprites.
« Last Edit: June 17, 2014, 01:09:39 am by Ran »

Offline Warboy1982

  • Administrator
  • Commander
  • *****
  • Posts: 2333
  • Developer
    • View Profile
Re: [WEAPON] Recolored Laser and Plasma Bullet Sprites
« Reply #12 on: June 17, 2014, 12:57:35 am »
your ruleset is missing the word "extraSprites:" and a bunch of information for the projectile replacement.

Code: [Select]
items:
  - type: STR_HEAVY_PLASMA
    bulletSprite: 11
  - type: STR_HEAVY_PLASMA_CLIP
    hitAnimation: 200
extraSprites:
  - type: Projectiles
    height: 3
    width: 87
    subX: 3
    subY: 3
    files:
      385: Resources/Plasma_recolored/PlasmaBulletSprite_red.png
      420: Resources/Plasma_recolored/PlasmaBulletSprite_blue.png
      455: Resources/Plasma_recolored/PlasmaBulletSprite_purple.png
  - type: SMOKE.PCK
    height: 80
    width: 160
    subX: 32
    subY: 40
    files:
      200: Resources/Plasma_recolored/HitAnimation_Plasma_red.gif
      210: Resources/Plasma_recolored/HitAnimation_Plasma_blue.gif
      220: Resources/Plasma_recolored/HitAnimation_Plasma_purple.gif

Offline Ran

  • Colonel
  • ****
  • Posts: 196
    • View Profile
Re: [WEAPON] Recolored Laser and Plasma Bullet Sprites
« Reply #13 on: June 17, 2014, 01:06:58 am »
But of course! ;D

I just deleted too much from the TestGun Ruleset I had already created some weeks ago, my mistake. All should work now.
« Last Edit: June 17, 2014, 01:11:48 am by Ran »

Offline shadychrctr

  • Squaddie
  • *
  • Posts: 7
    • View Profile
Re: [WEAPON] Recolored Laser and Plasma Bullet Sprites
« Reply #14 on: September 28, 2014, 12:53:08 am »
I'm not able to get this to work. I'm not a modder but since I've custom rebalanced my game, I modify all of the mods I add to my game. I tweaked and tidied this ruleset but when I fire my heavy laser I get no bulletsprite at all and the hit animation does a rainbow of colours. I tried putting my hitanimation gifs into different folders but that hasn't helped. I'd primarily like help with the lack of bullet sprite though. I can live with rainbow laser impacts.
I'm including a copy of my modified ruleset.
I am aware of the fact that the path for the files goes through resources/laser_recoloured but that's because I've renamed that file to match the ruleset, and it's in the proper caps and all.