Login

russian armor

Number weapon shots during camouflage

17 Dec 2019, 12:31 PM
#1
avatar of Olhausen
Modmaker Badge

Posts: 245

Hi community: I am working in my mod around the sniper. I wanted to mod a sniper who can shot more than once in camo without losing his camouflage.
What I did so far:

1. In the camo ext: I increase to x3 "first_strike_shots"
(Number of shots fired before getting revealed. Unit will receive first strike bonuses for this number of shots unless they are revealed. After firing, the unit must wiat first_strike_reset_time until it can take another batch of first_strike shots.)
I did this with my sniper and with vanilla snipers but the result it always the same. Only one shot in camo and the unit reveal itself.

2. I clean my sniper weapon ext in the value: fire/on_fire_action (just in case)

I also checked some vanilla weapons like american 57mm AT gun. I saw in there the weapon increase the number of shot in camo during first strike action with a burst action. But I can not find in the vanilla elements something to help me with my actual dilema.
Maybe I am missing something and maybe someone here know how to point me in the correct direction.

Thank you like always
Olhausen

17 Dec 2019, 13:50 PM
#2
avatar of SneakEye
Senior Modmaker Badge

Posts: 817 | Subs: 5

I think to issue is caused from the camouflage ability. The camouflage is always enabled, but it will be removed in a few cases: Not being in cover or not in combat since x seconds. The last one is probably what causes your sniper to reveal himself after one shot.
17 Dec 2019, 14:36 PM
#3
avatar of Olhausen
Modmaker Badge

Posts: 245

Hi mate, thank you for the quick answer.
Yes I was experimenting a lot this morning and it was like you say. My ability was the problem.
In my ability I have a requirement action. This action remove camo after unit enter in combat.
I just remove this and replace for a camo enable only and its works.

I am now trying to give the sniper a silenced sound. I already tried in the past with the MP40 and I fail. Maybe this time it could be possible with your support if you want to give me a hand.

Maybe it is possible to add in the fire action of the weapon a sten fx or something like that. I ask you because you did a great work with the Hetzer shot and maybe it is possible to do something similar with the sniper here.

Best regards
Olhausen
17 Dec 2019, 15:13 PM
#4
avatar of SneakEye
Senior Modmaker Badge

Posts: 817 | Subs: 5

This is possible for a single rifle shot, but I'm not sure if it will work on a burst from the mp40.

Create an entity with the Sten gun model. (Weapons are invisible on default).
Add 'spawn_entity' in your weapon in on_fire_actions with a duration of 1 sec. And 'permanent' to false.
Then add in the spawned_entity_actions:
animator_set_action,
action_name: audio_act_sten_suppressed_fire
fire and forget: true

You might need turn up your volume when testing ;)
17 Dec 2019, 15:15 PM
#5
avatar of Olhausen
Modmaker Badge

Posts: 245

Great !
I will work on it. I will give you my feedback soon ;)

EDITED OLHAUSEN:

I think I got it. I modded the spawn entity and add it to the fire extension of the sniper rifle like you told me. I have some questions and dubts maybe you could give me a hand on them.

1. The spawn entity that I use is a simple binocular and I made it invisible in game via ebps blue print (is visible: false)
2. I did not find the blue print name of the silenced sten on the database of the archives, that why I use the binoculars instead.
3. I removed the sound of my mosin nagant rifle replacing in the weapon animation table: variaty_name: "supressor"

Then I build and test. I need to increase a lot the volume and it is working.
A few questiong to improve more the work:

1. Is ok the use the binos and hide the element or I need the sten gun. If the answer is yes then could you tell me where are the small weapon blueprints located in the archives and one example with the sten silenced. I think in a future I will try to do all small weapons dropables.
Btw, the only small arm that I know the blue print name is the MP44 because it is present in the vanilla elements.

"gameplay\props\axis_mp44\axis_mp44"

2. Is ok how I did to remove the mosin nagan rifle sound ? Do you have another approach for that ?

Thanks again to guide me all the way here.
Best regards
Olhausen

17 Dec 2019, 20:45 PM
#6
avatar of SneakEye
Senior Modmaker Badge

Posts: 817 | Subs: 5

The binoculair is perfect, though I didn't know that it included that audio.

The prop is a different model then the weapon. The weapons can be found with the archive viewer. For example: armies/british/weapons... I will add the path for the sten soon.

Changing the variety_name is very well thought.

Edit:
The path for the sten: art\armies\british\weapons\smg_mk2_sten\smg_mk2_sten
This can be found in the archive viewer, in the file C:\Program Files (x86)\Steam\steamapps\common\Company of Heroes 2\CoH2\Archives\ArtBritish.sga.
17 Dec 2019, 22:37 PM
#7
avatar of Olhausen
Modmaker Badge

Posts: 245

Hi mate again. Now I put the correct blue print. I will do more test looking for a better result. I will write you soon. Thanks again !
1 user is browsing this thread: 1 guest

SHOUT IT OUT!

No ProfanityNumber of ShoutsRefresh Shout Box
Osinyagov: Suddenly, coh2 is slowly dying, but you can play it, playerbase still big enough
Last Wednesday, 17:00 PM
Osinyagov: Wow, i remember you from zansi and vali videos, good old memories
Last Wednesday, 16:58 PM
Beinhard: o7 miss this game and zansi
Last Wednesday, 14:09 PM
Lady Xenarra: @Willy Pete The lack of April Fools this year is odd lol
02 Apr 2025, 01:34 AM
Willy Pete: @Rosbone not dead yet. when that happens the font will switch to Papyrus :*(
02 Apr 2025, 00:16 AM
dasheepeh: it was an honor guys :guyokay:
01 Apr 2025, 20:34 PM
aerafield: yeah I already prepared my "Can't believe there's comic mode for the 10 daily visitors even on this April 1st" :guyokay:
01 Apr 2025, 20:29 PM
Rosbone: @dasheepeh I guess that means this site is officially dead :guyokay:
01 Apr 2025, 20:19 PM
dasheepeh: no comic sans font for april 1st this year?
01 Apr 2025, 19:56 PM
Willy Pete: @Lady Xenarra this you? https://i.imgflip.com/3e4thi.jpg
01 Apr 2025, 02:53 AM
Lady Xenarra: Does anyone else think that USF needs buffs? It feels like they’re on life support sometimes
01 Apr 2025, 02:36 AM
Willy Pete: @Rosbone Ahh I missed that memo. I still think its a bad decision though. Adds frustration for players and isnt gonna make them that much money
27 Mar 2025, 15:46 PM
Rosbone: It is also good they left it free until after the free to play weekend. Points for that.
27 Mar 2025, 09:34 AM
Rosbone: But I agree, the cost to get a full decent Coh game pushing $115 US is not the best idea. Especially when it needs so much more work for casuals.
27 Mar 2025, 09:32 AM
Rosbone: To be fair, it was a thank you to early fans right? They said it was not free for long and it would become a pay DLC at some point.
27 Mar 2025, 09:30 AM
Willy Pete: Re-releasing free DLC so they can charge new players money for it. Brilliant marketing strategy :clap:
27 Mar 2025, 04:31 AM
Soheil: Coh2 still broken server ?
25 Mar 2025, 18:27 PM
Rosbone: Congrats to Relic. Looks like Coh3 has finally usurped Coh2 s the popular Coh. You smell terrific. :snfQuinn:.
24 Mar 2025, 02:46 AM

Livestreams

unknown 22
Germany 845
Germany 12

Ladders Top 10

  • #
    Steam Alias
    W
    L
    %
    Streak
Data provided by Relic Relic Entertainment

Replay highlight

VS
  • U.S. Forces flag cblanco ★
  • The British Forces flag 보드카 중대
  • Oberkommando West flag VonManteuffel
  • Ostheer flag Heartless Jäger
uploaded by XXxxHeartlessxxXX

Board Info

264 users are online: 264 guests
1 post in the last 24h
6 posts in the last week
55 posts in the last month
Registered members: 53553
Welcome our newest member, wps22com1
Most online: 2043 users on 29 Oct 2023, 01:04 AM