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

Reskinning a UGX gun

broken avatar :(
Created 11 years ago
by pcmodder
0 Members and 1 Guest are viewing this topic.
1,826 views
broken avatar :(
×
broken avatar :(
Location: gb
Date Registered: 22 September 2014
Last active: 6 years ago
Posts
360
Respect
Forum Rank
Perk Hacker
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
Here to make epic maps
×
pcmodder's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
pcmodder's Contact & Social Linksken5hir0pcmodderugx
Is it possible to reskin a gun on UGX , if so how is it that i can do it, and is it possible to have the worldmodel appear where the soul chest reward goes instead of the ray gun? Thanks
broken avatar :(
×
broken avatar :(
Location: gbMilton Keynes
Date Registered: 17 January 2014
Last active: 6 years ago
Posts
6,875
Respect
Forum Rank
Immortal
Primary Group
Scripter
My Groups
More
My Contact & Social Links
More
Signature
If you want scripts / features made for you, then contact me by PM or email / skype etc
it will cost you tho so if you have no intention of reciprocating don't even waste my time ;)
×
Harry Bo21's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Harry Bo21's Contact & Social LinksHarryBo000[email protected]HarryBo21
Code Snippet
Plaintext
reward_trigger( )
{
player = undefined;

ray_gun = Spawn( "script_model", self.origin );
ray_gun.angles = (-30,0,-30);
ray_gun setmodel( "weapon_usa_ray_gun" );
self thread ray_gun_rotate( ray_gun );

playfxontag (level._effect["powerup_on"], ray_gun, "tag_origin");

self setCursorHint("HINT_NOICON");
self UseTriggerRequireLookAt();
self setHintString( "Press and hold &&1 to take your free Ray-Gun." );

while(1)
{
self waittill( "trigger", player );
player.has_gun = false;
player.has_gun_upgr = false;

if( player.free_ray_gun == false)
{
player.free_ray_gun = true;
old_gun = player getcurrentweapon();

weaplist = player GetWeaponsListPrimaries();
for(i=0;i<weaplist.size;i++)
{
if( weaplist[i] == "ray_gun" )
{
player.has_gun = true;
}
else if ( weaplist[i] == "ray_gun_upgraded" )
{
player.has_gun_upgr = true;
}
}

if( player.has_gun == true )
{
player switchtoweapon( "ray_gun" );
player givemaxammo( "ray_gun" );
player playsound( "ammo_pickup" );
self notify( "took_gun" );
ray_gun delete();
self delete();
break;
}

else if( player.has_gun_upgr == true )
{
player switchtoweapon( "ray_gun_upgraded" );
player givemaxammo( "ray_gun_upgraded" );
player playsound( "ammo_pickup" );
self notify( "took_gun" );
ray_gun delete();
self delete();
break;
}

else if( weaplist.size <= 1 )
{
player giveweapon( "ray_gun" );
player switchtoweapon( "ray_gun" );
player playsound( "weap_pickup_plr" );
self notify( "took_gun" );
ray_gun delete();
self delete();
break;
}

else if( weaplist.size >= 2 )
{
player takeweapon( old_gun );
player giveweapon( "ray_gun" );
player switchtoweapon( "ray_gun" );
player playsound( "weap_pickup_plr" );
self notify( "took_gun" );
ray_gun delete();
self delete();
break;
}
}

else if( player.free_ray_gun == true )
{
iprintlnbold( "This one is not for you..!" );
}
wait 0.1;
}
}

Change the instances of "ray_gun" to your weapon file that you want to recieve

change "ray_gun setmodel( "weapon_usa_ray_gun" );" To your model

broken avatar :(
×
broken avatar :(
Location: gb
Date Registered: 22 September 2014
Last active: 6 years ago
Posts
360
Respect
Forum Rank
Perk Hacker
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
Here to make epic maps
×
pcmodder's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
pcmodder's Contact & Social Linksken5hir0pcmodderugx
Thanks but also do you know where or how i would change the model skin , like to change the commando skin for one i got off google imageS?
broken avatar :(
×
broken avatar :(
Location: nlApeldoorn
Date Registered: 17 December 2013
Last active: 2 years ago
Posts
1,186
Respect
1,332Add +1
Forum Rank
Zombie Colossus
Primary Group
Scripter Elite
My Groups
More
My Contact & Social Links
More
Personal Quote
It aint much, if it aint Dutch
Signature
×
BluntStuffy's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
Oil Rig Beta Access
Oil Rig Beta Access
BluntStuffy's Contact & Social LinksBluntStuffyBluntstuffy@BluntZombieStuffyZombie
find the .iwi in ugxm_guns.iwd inside the image's folder and replace it with your's..

 
Loading ...