UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - ville88


6 years ago
Ville88 back at it again!

hello!

Double Post Merge: July 01, 2018, 08:48:12 am
Looks so good, but put full BO3 weapons! ^^

Why?
6 years ago
A - you cannot spawn script structs (spawn struct is a ‘data structure’ )

B - assigning Kvps would do nothing anyway apart from assign stuff - that doesn’t just ‘make them work’

C - can’t play a sound on a struct - because it’s not an entity

sad. Thanks

6 years ago
Why the hell are you doing this by script? Things like these are already be played in other scripts.
If you want to play sound on them you can better search for these entries and then do something.
From what I read here you are doing double work? Show me more examples of what you really want.

working example:

Code Snippet
Plaintext
init_risers();


init_risers()
{
mn = getDvar("mapname");
switch(mn)
{
case "nazi_zombie_death":
level.riser_spot = [];
level.riser_spot[0] = spawnstruct();
level.riser_spot[0].origin = (848,432,64);
level.riser_spot[0].targetname = "zombie_rise";
level.riser_spot[0].script_noteworthy = "riser_door";

level.riser_spot[1] = spawnstruct();
level.riser_spot[1].origin = (880,504,64);
level.riser_spot[1].targetname = "zombie_rise";
level.riser_spot[1].script_noteworthy = "riser_door";

level.riser_spot[2] = spawnstruct();
level.riser_spot[2].origin = (152,480,64);
level.riser_spot[2].targetname = "zombie_rise";
level.riser_spot[2].script_noteworthy = "riser_door";

level.riser_spot[3] = spawnstruct();
level.riser_spot[3].origin = (296,456,64);
level.riser_spot[3].targetname = "zombie_rise";
level.riser_spot[3].script_noteworthy = "riser_door";

level.riser_spot[4] = spawnstruct();
level.riser_spot[4].origin = (296,552,64);
level.riser_spot[4].targetname = "zombie_rise";
level.riser_spot[4].script_noteworthy = "riser_door";
break;
}
}
6 years ago
Now I only see "struct_sound" what else do you need?

I need to add a "script_struct" to a map supported by all "kvp" (example: riser spawner or sounds)

I lost the source of the map. and I need to add a couple of sounds and spawn for zombie riser
as well as "script_struct" for the buyable barricade
6 years ago
I need it not only for sounds

Double Post Merge: June 28, 2018, 06:15:54 am
Okeey,
1: where is your main connected to?
2: I don't if that soundcode works for your struct so maybe you have to use this:
Struct_sound[0] playsound("soundName here");

You have to check in code reference if I am right about the parameter(s)

I need it not only for sounds
6 years ago
I'm trying to add a "script_struct" to the map without "radiant" using only the scripts but:
this script does not work
Code Snippet
Plaintext
main()
{
level thread struct_sounds();
}

struct_sounds()
{

struct_sounds = [];
struct_sounds[0] = spawnstruct();
struct_sounds[0].origin = (-208, 48, 16);
struct_sounds[0].targetname = "couch_loop";
struct_sounds[0].script_sound = "couch_loop";
struct_sounds[0].script_label = "looper";

}


help me fix it please :)
6 years ago
Spoiler: click to show...

Double Post Merge: June 25, 2018, 03:56:28 pm

need help, if you want:
https://www.ugx-mods.com/forum/index.php/topic,16517.msg158149.html#msg158149
6 years ago
For "verruckt" need go to root/raw/maps/mapname.gsc and find function but i understand you and i'll be try
6 years ago
I have a license (no "Steam" version). I also think that the problem is in scripts

6 years ago
I not use the console. this bug is on everyone on the map "verruckt" (betty does not kill zombies)

6 years ago
sound effects I added to the video
problem - betty does not kill zombies
6 years ago
Loading ...