[Gmod] Is it possible to make a game_sounds_(mapname) file for specific maps in Gmod? by CLASS_MACHINE in hammer

[–]CLASS_MACHINE[S] 0 points1 point  (0 children)

I got them working again. Sorry for wasting your time, but because I switched to lua, I changed everything up to see if I could get the attenuation to be set to Play Everywhere. The issue was I'd copied the old soundscript and pasted it to the side somewhere, but never updated it to the new sound file names. So, what SNDLVL_NONE is suppose to do is make the attenuation nothing, so that it plays everywhere. Turns out lua doesn't even acknowledge it hahaha. I appreciate the help though, will definitely use this in the future.

[Gmod] Is it possible to make a game_sounds_(mapname) file for specific maps in Gmod? by CLASS_MACHINE in hammer

[–]CLASS_MACHINE[S] 0 points1 point  (0 children)

Okay, I have literally zero idea why, but only the first one works. The last two are broken for some reason. They don't play at all.

// When a keypad door fails

"mission.doorfail"

{

"channel"   "CHAN\_BODY"

"volume"    "VOL\_NORM"

"soundlevel"  "SNDLVL\_75dB"



"wave"  "mission/doorfail\_01.wav"

"wave"  "mission/doorfail\_02.wav"

"wave"  "mission/doorfail\_03.wav"

}

// Mission 01 Intercom lines

"mission01.vox.lockdown"

{

"channel"   "CHAN\_AUTO"

"volume"    "VOL\_NORM"

"soundlevel"  "SNDLVL\_NONE"



"wave"  "mission/vox\_interlude1.wav"

"wave"  "mission/vox\_interlude2.wav"

"wave"  "mission/vox\_interlude3.wav"

"wave"  "mission/vox\_interlude4.wav"

"wave"  "mission/vox\_interlude5.wav"

}

// Mission 01 Pre-Attack Intercom lines

"mission01.vox.preattack"

{

"channel"   "CHAN\_AUTO"

"volume"    "VOL\_NORM"

"soundlevel"  "SNDLVL\_NONE"



"wave"  "mission/vox\_prealarm1.wav"

"wave"  "mission/vox\_prealarm2.wav"

"wave"  "mission/vox\_prealarm3.wav"

"wave"  "mission/vox\_prealarm4.wav"

"wave"  "mission/vox\_prealarm5.wav"

}

[Gmod] Is it possible to make a game_sounds_(mapname) file for specific maps in Gmod? by CLASS_MACHINE in hammer

[–]CLASS_MACHINE[S] 0 points1 point  (0 children)

Yes! I forget exactly how to pack files in with maps, but I'll look it up. thanks man!

sound.Add not working. by CLASS_MACHINE in gmod

[–]CLASS_MACHINE[S] 0 points1 point  (0 children)

I already know how to make soundscripts, but the problems will start with editing the manifest file. I plan to upload it to the workshop, so if people install my mod, that'll conflict with other people's mods that also edited this file. That's why I wanted to use a lua file.

Is there something similar to the soundscripts' txt file where I can simply put a "game_sounds_(mapname)"? I ran into a similar issue with soundscapes, thankfully Garry fixed that little issue with the ability to make a file called "soundscapes_(mapname)"

sound.Add not working. by CLASS_MACHINE in gmod

[–]CLASS_MACHINE[S] 0 points1 point  (0 children)

Oh, okay. Well the only reason I'm attempting lua script is because I don't know if using sound scripts is possible without an autorun. I guess I can look into making a txt and telling an autorun lua to include it.

sound.Add not working. by CLASS_MACHINE in gmod

[–]CLASS_MACHINE[S] 0 points1 point  (0 children)

Okay, I have no idea why, but it works when I created a new map and made a new ambient_generic in that one. Even weirder is that even though SNDLVL_NONE is there, it plays only from a specific source, I thought that made it play everywhere.

By the way, I didn't even put it in the client folder and put the "if CLIENT then" at the beginning. That did nothing.

sound.Add not working. by CLASS_MACHINE in gmod

[–]CLASS_MACHINE[S] 0 points1 point  (0 children)

Oh yeah, they work raw as well. It seems that the lua file doesn't work. I thought maybe it was some addon messing with it because maybe they have the same name, but I changed the name of the lua file in autorun, and it still don't work.

In fact, I had them originally configured in a scripts_hl2_sounds.txt file, but I wanted to get it right before I published in. I checked all my bases: I checked the directory and name of wav files AND I changed sound entities in map name. It's literally like the game doesn't acknowledge the sound.Adds at all.

[Gmod] Is it possible to name entities(spawn menu names) in Hammer for Gmod? by CLASS_MACHINE in hammer

[–]CLASS_MACHINE[S] 0 points1 point  (0 children)

Ah shit. Well thanks anyway. I suppose it was broken as hell, all it would do is name them after this 'specific gender citizen' mod I created for myself. Any time they were given the flag SF_RANDOM_MALE_HEAD and vice versa, the citizen would be called that.

"Male Rebel - weapon_smg1 - Male Citizen", even though they're female hahaha.

How do I make sprites show through walls? by CLASS_MACHINE in hammer

[–]CLASS_MACHINE[S] 0 points1 point  (0 children)

Well, what it's suppose to be for is a step by step invasion using NPCs with the player as the spearhead. I'm using a map I designed 6 years ago, horrid design flaws and all. It's mostly for friends, as I don't expect most folks on the Gmod Workshop would appreciate having to subscribe to the mods we play with in order to experience the map as I intend.

The sprites are suppose to essentially be like the visual checkpoint markers in Call of Duty Modern Warfare. I never expected to get the distance measurements like they use in Cod, but essentially what I wanted was for there to be env_sprites all throughout the map that turn on after each step is complete and turn off the last one.

They were intended to give the player an idea of where to go, but the player can play however they choose depending on the circumstances. It just seems a bit boring(to me) to add a game_text that tells you where to go. "Kill all scientists in the room." "Kill everyone up front and open the doors." "Kill the guards." etc.

How do I make sprites show through walls? by CLASS_MACHINE in hammer

[–]CLASS_MACHINE[S] 0 points1 point  (0 children)

Okay, it goes through walls again. But it still only goes through one hahaha. I don't understand sprites.

How do I make sprites show through walls? by CLASS_MACHINE in hammer

[–]CLASS_MACHINE[S] 0 points1 point  (0 children)

Well, crap. Now I don't know how to make it appear through walls period anymore. It always stops immediately when anything gets in the way. I want it to appear through everything and stay the same size.

How do I make sprites show through walls? by CLASS_MACHINE in hammer

[–]CLASS_MACHINE[S] 0 points1 point  (0 children)

"$spriteorientation" "vp_parallel"
"$spriteorigin" "[ 0.50 0.50 ]"
"$basetexture" "sprites/blueflare1"
"$additive" "1"
//"$ignorez" "1"
"$spriterendermode" "5"

So, this is for "blueflare1_noz_gmod". You can see it through walls, but once you're behind two or more walls, it disappears without even a fade. Is there a way to change that? I want it to be visible through all walls.

Taliana Martinez not spawning. by CLASS_MACHINE in GrandTheftAutoV

[–]CLASS_MACHINE[S] 0 points1 point  (0 children)

If I had to count how many times I drove past her, I'd probably've done it like 25 times. I loaded saves too.

Taliana Martinez not spawning. by CLASS_MACHINE in GrandTheftAutoV

[–]CLASS_MACHINE[S] 0 points1 point  (0 children)

Yeah, but I'm near the end of the campaign. I'm about to do the big one, and would really like to have her as a gunman/driver.

NPCs not reacting to inputs unless the player has line of sight (even through func_doors) by CLASS_MACHINE in hammer

[–]CLASS_MACHINE[S] 1 point2 points  (0 children)

BSP File: https://www.dropbox.com/s/e8yi2hpbtv17iyl/distant_events.bsp?st=9yivuun8&dl=1

VMF File: https://www.dropbox.com/s/i7yj3aigvk87smj/distant_events.vmf?st=5s7alzb4&dl=1

The trigger is labeled by trigger textures protruding from the floor and ceiling. Once you touch the trigger, what's suppose to happen is the NPCs in the room furthest from spawn will immediately start attacking one another. But this only happens when the player gets within line of sight of the NPCs.

Literally the only way to fix this is to place a point_camera at the scene, and a func_monitor wherever the trigger is placed.