Author Topic: Clips should be able to change weapons images (big, hands and floor)  (Read 7926 times)

Offline CanadianBeaver

  • Colonel
  • ****
  • Posts: 173
    • View Profile
    • AwesomeGuns
    • Email
Re: Clips should be able to change weapons images (big, hands and floor)
« Reply #15 on: August 31, 2016, 06:53:34 am »
Here is implementation for custom (3 possible version per weapon) graphic based on ammo:

Thank you, I will think about.

Offline Nord

  • Commander
  • *****
  • Posts: 1429
  • The Gate is open.
    • View Profile
Re: Clips should be able to change weapons images (big, hands and floor)
« Reply #16 on: September 23, 2021, 02:08:11 pm »
Excuse me, but i can not understand what
Code: [Select]
rules.getSpriteOffsetBigobs sprite_index temp;doing.
Can you explain please?

(I thinked it is like "auto-adding mod offset when more than one mod is used" but looks like it is not working like that.)

Offline Yankes

  • Commander
  • *****
  • Posts: 2763
    • View Profile
Re: Clips should be able to change weapons images (big, hands and floor)
« Reply #17 on: September 25, 2021, 12:37:42 pm »
This is to recover real index of surface in common surface sets.
In any times you define index based on your mod, this mean index `1` in two different mods it should convert to different real index like `2001` or `4001` (and this value will change when you swap mod load order).
First value initial value is surface index in given mod, second is mod id.

As one another details, this function some times do not add mod offsets, because some index are "common" and all mods share same surface, this is for base game asserts where every mod can override it or use in its own units.