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

[TUTORIAL] BO2 Weapons Glow

HOT
broken avatar :(
Created 11 years ago
by jei9363
0 Members and 1 Guest are viewing this topic.
9,707 views
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 10 October 2013
Last active: 1 year ago
Posts
541
Respect
Forum Rank
Zombie Enslaver
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
×
ProGamerzFTW's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
make it like this :

Code Snippet
Plaintext
preCacheMyFX()
{
level._effect["weapon_glow"] = loadfx("weapon_glow");    [color=red] //this line had the error[/color]
}


main()
{
level.DLC3 = spawnStruct(); // Leave This Line Or Else It Breaks Everything

// Must Change These To Your Maps
level.DLC3.createArt = maps\createart\nazi_zombie_undead_town_art::main;
level.DLC3.createFX = maps\createfx\nazi_zombie_undead_town_fx::main;
level.DLC3.myFX = ::preCacheMyFX;

}

ok thanks will do

nono, i just took the top 16 lines of my mapname.gsc, just to show u where it should be. thats only the top of my main() function itself.

Also if not there already, put it at the bottom of mapname.gsc

Code Snippet
Plaintext
preCacheMyFX()
{
level._effect["weapon_glow"] = loadfx("weapon_glow");
}

Last Edit: March 16, 2014, 06:11:15 pm by ProGamerzFTW
broken avatar :(
×
broken avatar :(
Location: gbComing up in the world
Date Registered: 26 November 2013
Last active: 10 years ago
Posts
325
Respect
Forum Rank
Perk Hacker
Primary Group
Community Scripter Elite
My Groups
More
My Contact & Social Links
More
Personal Quote
I own the hat!
×
DuaLVII's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
DuaLVII's Contact & Social LinksDuaLVIIthomas.gascoigne.7DuaLVIITheProlonger
Here's the fix I did for Rambo;

mapname.gsc
Above main() function name
Code Snippet
Plaintext
precacheWeaponGlow()
{
level._effect["weapon_glow"] = loadfx("weapon_glow");
}



After zombiemode::main
Code Snippet
Plaintext
	weapon_glows = GetEntArray( "weapon_upgrade", "targetname" );
array_thread(weapon_glows,::glow_weapons);



Example of what it should look like:
Code Snippet
Plaintext
/*--------------------
ZOMBIE MODE
----------------------*/
[[level.DLC3.weapons]]();
[[level.DLC3.powerUps]]();
maps\_zombiemode::main();
/*--------------------
Weapon Glow
----------------------*/
weapon_glows = GetEntArray( "weapon_upgrade", "targetname" );
array_thread(weapon_glows,::glow_weapons);



And After;
Code Snippet
Plaintext
	/*--------------------
FUNCTION CALLS - POST _Load
----------------------*/
level.zone_manager_init_func = ::dlc3_zone_init;
level thread DLC3_threadCalls2();
}

Add:
Code Snippet
Plaintext
glow_weapons()
{
self.tag_origin = spawn("script_model",self.origin);
self.tag_origin setmodel("tag_origin");
playfxontag(level._effect["weapon_glow"],self.tag_origin,"tag_origin");
}




Example script (But don't copy and replace, just for reference);

>Download example mapname<



Hope this will help avoid the confusion.
Last Edit: March 16, 2014, 06:30:44 pm by DuaLVII
broken avatar :(
  • DeletedUser
  • Deleted Member
×
broken avatar :(
DeletedUser
This user is deleted :(
download link seems to be broken.
broken avatar :(
×
broken avatar :(
Former UGX Lead Asset Creator
Location: ca
Date Registered: 17 August 2012
Last active: 6 years ago
Posts
1,932
Respect
Forum Rank
Zombie Destroyer
Primary Group
UGX V.I.P.
My Groups
More
My Contact & Social Links
More
Personal Quote
Eh?
Signature

(Click to enter portfolio)
×
SajeOne's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
UGX V.I.P.
UGX V.I.P.
download link seems to be broken.
An example of why dropbox isn't a good choice as an upload host. Once you get too much traffic they delete the link.

@Bamskater if you could upload to mediafire or somewhere else that will keep your link that would be nice, thanks.

 
Loading ...