Osiris icon indicating copy to clipboard operation
Osiris copied to clipboard

Hitsound

Open ghost opened this issue 7 years ago • 10 comments

I tried to replace the hitsound to buttons\arena_switch_press_02 but it didn't work ... can some1 help me?

  • Can you add hitmarker now that u have added hitsound? ( Please make adjustable size )

ghost avatar Jun 04 '19 08:06 ghost

+1 for the hitmarker thing If you can add different types of sounds.

Flaam avatar Jun 04 '19 08:06 Flaam

adjust game master sound to adjust hitsound. hitSound function in Misc.h

if (config.misc.hitSound && interfaces.engine->isInGame()
			&& !strcmp(event->getName(), "player_hurt")
			&& interfaces.engine->getPlayerForUserID(event->getInt("attacker")) == interfaces.engine->getLocalPlayer()) {
			switch (config.misc.hitSoundType) {
			case 0:
				interfaces.engine->clientCmdUnrestricted("play physics/metal/metal_solid_impact_bullet2");
				break;
			case 1:
				interfaces.engine->clientCmdUnrestricted("play buttons/arena_switch_press_02");
				break;
			case 2:
				interfaces.engine->clientCmdUnrestricted("play training/timer_bell");
				break;
			}
		}

renderMiscWindow line 450

                ImGui::Checkbox("Hit sound", &config.misc.hitSound);
		ImGui::Combo("Hit Sound", &config.misc.hitSoundType, "Metal\0Gamesense\0Bell\0");

config.h line 173

                bool hitSound{ false };
		int hitSoundType{ 0 };

NexSqaud avatar Jun 04 '19 09:06 NexSqaud

adjust game master sound to adjust hitsound. hitSound function in Misc.h

if (config.misc.hitSound && interfaces.engine->isInGame()
			&& !strcmp(event->getName(), "player_hurt")
			&& interfaces.engine->getPlayerForUserID(event->getInt("attacker")) == interfaces.engine->getLocalPlayer()) {
			switch (config.misc.hitSoundType) {
			case 0:
				interfaces.engine->clientCmdUnrestricted("play physics/metal/metal_solid_impact_bullet2");
				break;
			case 1:
				interfaces.engine->clientCmdUnrestricted("play buttons/arena_switch_press_02");
				break;
			case 2:
				interfaces.engine->clientCmdUnrestricted("play training/timer_bell");
				break;
			}
		}

renderMiscWindow line 450

                ImGui::Checkbox("Hit sound", &config.misc.hitSound);
		ImGui::Combo("Hit Sound", &config.misc.hitSoundType, "Metal\0Gamesense\0Bell\0");

config.h line 173

                bool hitSound{ false };
		int hitSoundType{ 0 };

Thanks !!

ghost avatar Jun 04 '19 09:06 ghost

is that a way to put hitsound only on granades? it dont feels worthy on weapons

ViniciusSchifferGuedes avatar Jun 04 '19 19:06 ViniciusSchifferGuedes

I have the codea for nades only as well. If you want i can give when I'm on my PC

notaila avatar Jun 04 '19 23:06 notaila

But seriously who puts hitsound on nade only

notaila avatar Jun 04 '19 23:06 notaila

That’s a new one. Never heard of someone wanting hitsound on nades only through my 4 years of csgo cheating lmao

Shaxzy avatar Jun 05 '19 00:06 Shaxzy

Yeah XD

notaila avatar Jun 05 '19 00:06 notaila

Added those sounds. If you've got more sounds post them here.

danielkrupinski avatar Jun 05 '19 10:06 danielkrupinski

weapon/party_horn_01 - killsound :D weapon/lowammo_01 physics/rubber/ball_impact_a_02 physics/glass/glass_impact_bullet1 physics/plastic/plastic_box_impact_bullet1

NexSqaud avatar Jun 05 '19 11:06 NexSqaud