A way to attach rendinsts_decor on vehicles with the ability to rotate? a way to apply voices by equipment? and how to change FOV for everyone on spawn

greetings modders. i have 3 questions which with all my efforts, i couldn’t figure out a solution to these 3 problems.

perhaps i’m looking in the wrong places.

anyway,

as entitled,

1st issue:

is there a working way to add decors rendinsts to vehicles? and somehow be able to rotate them?

because, as far as i know, there are two ways. but both ways have issues.

the first is through +game_rendinsts_decor . which somewhat work, but the issue is, i can’t figure out how to rotate them. if i tweak with Visual studio the TM or the other parameter presents, nothing works.
a clear example is, if you try to attach tents to their respectively vehicle. no luck.

and the other problem is, i cannot place more than one game_rendinst on top of each other. so it’s not ideal if i wanna add more to sell the idea ( for example ) of a logistical truck with a tent, boxes and tools attached to the side.

the second method is,

  "attach_decorators__templates:array"{
    "attach_decorators__templates:object"{
      relativeTm:m=[[1, 0, 0] [-1, 0, 1] [0, 1, 0] [0.8, 1.3, 1]]
      template:t="vgt_palm_c+game_rendinst_decor"
      nodeName:t="root"
      ri_extra__name:t="tractor_stz_5_tent_a"
      ri_extra__hasCollision:b=no
    }

( yes, i also tried to remove the " vgt palm_c " and it didn’t worked either )

problems with the second methods are,

  • collisions will start kicking in therefore the ri extra collision input gets ignored

  • it does not save the ri_extra__name therefore still looking like sandbags.

  • the decorators do not work on vehicles that are not tanks.

has anyone found a better solution?

cheers.

2nd issue.

is it possible to apply voices through equipment? or be able to somehow change voice through a pick up?

so, the reason why i’m asking is, i’m working on a ww1 mod. french against germans.

but i have the issue that i do not know how to let players be able to change their voices through a pickup.

my initial idea was to put heads at the spawn with the voice postfix.

problem is, despite being first, or latter as a postfix, it does not replace the voice.

so i was wondering if i can place a head that will also change the voice when players applys it.

and lastly,

Third Issue

so, i played around with the fov, and i really love the 120.

problem is, despite applying post templates ( or pre ), the spawn does not save the settings.

which, to make an example, if i apply the base moon soldier tag to a spawn, every soldier that will spawn ( or vehicles ) will receive the effects and tags. therefore, builded auto turret will engage troops and vehicles.

my issue though, how can i do something similar, but with the FOV.

is it possible? cheers.

2 Likes

Hmmm… I think I need test all issues to be sure.
But currently time I think…

Well…
I think you need edit relativeTM.
Edit first three matrix boxes ([[1, 0, 0] [-1, 0, 1] [0, 1, 0]).
You can get numbers by create game_rendinst_decor and rotate it.
After that save file and check scene.blk. This game_rendinst_decor will got new… numbers.

It should possible, but not by pickup equipment.
Maybe works only in local game.

For that you need create entities.blk in your mod folder.
And then just edit some soldier entitiy?
Like change voice to french?

I don’t know path.
But it maybe should looks like…

uk_base_soldier{
  _override:b=yes
  human_sound__playerVoice:t="vo/player/enlisted/soldier/ussr"
}

Again. It probably will not work in multiplayer.

I’m not sure what you about…
But it should possible. Same like second issue.

I think you need edit soldier_cam_perlin.



Create entities.blk file and try add this code:

soldier_cam_perlin{
  _override:b=yes
  fovSettings:r=120.0

But i don’t know if it works or not.
I need to do some test to be sure.

About entities.blk.

It have code:

Entity{
  Properties.
}

If you uses default Entity like mp_40 and want edit some stats then add _override:b=yes before Properties.. They’re default stats that you can find in entities. Their code similar that in scene.blk.

1 Like

i was hoping to avoid entities :confused:

due to being kinda a new thing for me, and currently not supported in multiplayer.

that’s what i did, but the position remain unchanged.

so i was hoping to know if someone found another method.

( due to the nodes still not working ).

oh well. thanks anyway :+1:

1 Like