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 - MrGVSV

I just wrote a script (it's based around MakeCents' awesome window breakables prefab link: https://ugx-mods.com/forum/index.php?topic=4602.0) that lets me simulate glass shattering upon shooting at it. However, once the brushmodels get launched in whatever direction,they still have their collision which makes navigating passed them in-game difficult. Any way I could remove their collision and/or have them fade away (the delete() function is just so ugly).

This is the code I thread to in my mapname.gsc
Code Snippet
Plaintext
breakStuffTrigger()
{
break_trigger_array = getEntArray("break_trigger", "targetname");
for (i = 0; i<break_trigger_array.size; i++)
{
break_trigger_array[i] thread breakStuff();
}
}

breakStuff()
{
self waittill("trigger");
stuff_break = getEntArray(self.target, "targetname");
self playsound("glass_00");
for(i=0; i<stuff_break.size; i++){
if(isdefined(stuff_break[i].script_sound)){
stuff_break[i] playsound(stuff_break[i].script_sound);
}else{
stuff_break[i] playsound("wallcrash");
}
stuff_break[i] PhysicsLaunch( stuff_break[i].origin , (randomintrange(-10000,10000),randomintrange(-100000,10),10000) );
}
wait 5;
for(p=0;p<stuff_break.size;p++){
stuff_break[p] delete();
}
self delete();
}

(Side note: the playsound functions don't seem to work :-\) Any help is appreciated!
8 years ago
lift the blend texture a unit off the other

it does this for custom blend textures

That's clever haha. Anyway, works like a charm so thanks!
8 years ago
I was trying out blending on some terrain in my map, but when I compile, it's invisible (still there collision-wise, but I can't see it). I blended a custom texture I made (that works on its own) and the okinawa_terrain_dirt_wetdirt_blend.

The Launcher spits out:
Code Snippet
Plaintext
ERROR: Couldn't open techniqueSet 'techsets/l_sm_r0c0_b1c1n1s1_sco.techset'
Cannot create technique set. The offending 2-layer combination is:
wc/custom_carpet_blue_norm
wc/okinawa_terrain_dirt_wetdirt_blend

I checked my techset folder and there is no l_sm_r0c0_b1c1n1s1_sco.techset (closest file was l_sm_r0c0_b1c1n1s1.techset)

Any ideas besides just picking different textures to blend? (The custom carpet really ties the room together.)
8 years ago
Loading ...