Max Weapon Upgrades and Soldier Perks

Hello,
I’m trying to test weapons at their max upgrade stat and read that you can use customProps to do this. However, I’m not noticing any difference. Am I missing something?

entity{
  _template:t="hyde_model_35_gun_item+item_in_world"
  transform:m=[[1, 0, 0] [0, 1, 0] [0, 0, 1] [249.855, 5.10166, -224.971]]

  "customProps:object"{
    "initialComponents:object"{
      gun__shotFreq:t="15"
      gun__kineticDamageMult:t="20,0"
      gun__recoilAmount:t="-10,0"
      gun_spread__maxDeltaAngle:t="0.3"
    }
  }
}

Also I wanted to add perks to the soldier on the modseditor, I heard that you can use custom profiles to do it but I’m not sure where to start. Is there a way to edit the perks from scenes.blk?

Thanks

1 Like

this is the guide where mostly tells you how to do stuff

as far as i’m aware, no.

it’s not possible.

only through profiles.


regarding:

personally, i tweak parameters through entities.blk

but @Devenddar can aid you since he did alot of custom weapons in scene.blks through customprops

1 Like

Yes.

You use wrong data types. You use text (t) instead real (r).
Also don’t forgot to change , to .

1 Like

You can, but it will work for all soldiers. For that need to create game_mode_units_modifier entity and then add perk properties that you can find in soldier entities (for example entity_mods__speedMult).
image
If you need to edit only certain playable soldiers then yeah… You will need to create custom profile.

2 Likes

you learn something useful every day uh :wink:

bruh :person_facepalming:

Thanks I got it to work, I think I found out how gun__shotFreq work. So you get the base number then calculate it for the initialComponents.
gun_spread__maxDeltaAngle should probably work the same

But I still don’t know how to adjust the recoil. I wanted to reduce the Horizontal and Vertical recoil by -10% but adjusting gun__recoilAmount in initialComponents just overrides the recoil.

1 Like

Usually these stats changes after upgrades.

gun__shotFreq
gun__reloadTime
gun__kineticDamageMult
gun_spread__maxDeltaAngle
gun__recoilAmount
1 Like

Hi, is there a beginner’s guide for entities.blk? I’d like to try that out too. :smiley:

1 Like

I see. I think I figured out how to get most of those stats to simulate a fully upgraded weapon.
So for example the Silenced Erma EMP:


Since its an SMG it will get:
image

So you just need calculate the base numbers from the item
image

Then put it in initialComponents (MaxDeltaAngle and ReloadTime should be the same as in Euthy’s stats)

entity{
  _template:t="silenced_erma_emp_gun_item+item_in_world"
  transform:m=[[0.319714, -0.00141148, -0.947513] [0.945444, -0.0655992, 0.319113] [-0.0626065, -0.997845, -0.0196385] [-824.67, 17.8373, 101.999]]
  "customProps:object"{
    "initialComponents:object"{
      gun__shotFreq:r=10.58
      gun__kineticDamageMult:r=1.164
      gun__reloadTime:r=2.3
      gun__recoilAmount:r=0
      gun_spread__maxDeltaAngle:r=0.64
    }
  }
}

I couldn’t find gun__recoilAmount in the details. So in Euthy’s sheet, the Silenced Erma EMP has 5 actual Horizontal and Vertical Recoil. Does anyone know how to translate that to gun__recoilAmount?

1 Like

as of yet,

there isn’t one.

it’s just mostly unpacking or trying to view default templates, and then modify them by adding / removing codes.

you can, howver translate and get a feeling of entities from this thread:

you’ll need a translator.

or, ask if devs or someone else could make guides about it.

because i only use entities for like… cosmetics and changing basic values.

so i’m not that expert about it.

2 Likes

Ah. Got it. Well… Pickup it and then use Find Entity tool and find weapon. After that you will got stats.

There some basic guide. If you a bit know how to work with scene then it probably won’t very difficult to understand.

UPD: Forgot to write that _extends changed to _use.

1 Like

So what the hell is the type “real”
(I thought it was “round”)
I can understand the concepts of “text”, “array” and “object”, but I don’t understand “real”.

real = float

1 Like

or you could have just quoted here

1 Like

Thanks, I found it. Took me a while to figure out that you need to switch to Developer mode to be able to find the entity.

1 Like

So it’s a “half float”, got it.

it depends. somewhere it is basically just equivalent of float (e.g. transact sql or MS sql server) or double (e.g. mysql), in others it could be any representation of any real number (e.g. float or double or decimal)