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

Anyone Know A Good Tutorial On How To Port Zombie Models?

HOT
broken avatar :(
Created 10 years ago
by oshawat750
0 Members and 1 Guest are viewing this topic.
35,490 views
broken avatar :(
×
broken avatar :(
Location: usTexas
Date Registered: 12 September 2013
Last active: 1 month ago
Posts
304
Respect
Forum Rank
Perk Hacker
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
I make maps for fun, they are mostly crap.
Signature
Maps:
Unterwegs
Hello Kitty Remastered
Firing Range
×
oshawat750's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
oshawat750's Contact & Social LinksOshaPooOshawat750Oshawat750
Oh ok cool! so in this part of the script in zombiemode_spawner.gsc add the line that i put a comment beside saying add. lol

Code Snippet
Plaintext
if( level.boss_spawned == 1 && randomint( 100 ) < 40 )
{
level.boss_spawned--;
self.boss = true;
self detachall();
self setModel("char_ger_ansel_body");
self.headModel = "char_ger_honorgd_zombiehead1_1";
self attach(self.headModel, "", true);

self.maxhealth = HEWHEALTH;
self.health = HEWHEALTH;
self thread play_sound_on_death();
                self thread play_avagadro_fx();        // ADD THIS LINE TO YOUR SCRIPT
}

Then at the bottom of zombiemode_spawner.gsc add this:

Code Snippet
Plaintext
play_avagadro_fx()
{
while (1)
{
if(self.health > 0)
{
playfxontag(level._effect["brutus_fire"],self,"j_ankle_le");
// Just replace brutus_fire with whatever electricity FX you want. Just go look at
// them in Effects Editor. Also change j_ankle_le to the tag on your Avagadro where you want the FX to play.
// I'm only using 2 but you can have as many as you want.
playfxontag(level._effect["brutus_fire"],self,"j_ankle_ri");
wait(8);
}
else
{
break;
}
}

}
I added the fx_elec_player_torso effect to pelvis, and it didn't work.
broken avatar :(
×
broken avatar :(
Location: usgeorgia
Date Registered: 24 April 2013
Last active: 3 years ago
Posts
560
Respect
Forum Rank
Zombie Enslaver
Primary Group
Mapper
×
whippytrout's Groups
Mapper Has released one or more maps to the UGX-Mods community.
whippytrout's Contact & Social LinksWhippyTroutWhippyTrout
Make sure to include the fx in a csv. I would just add it to your mod.csv. Also make sure you have the path correct for the fx. And I forgot to tell you to add the fx to the top of zombiemode_spawner.gsc. I'm so sorry.  :-[

Add your fx right below init like this (the name here has to match the name at the bottom of the file so in my case they are both brutus_fire):

Code Snippet
Plaintext
init()
{
level._effect["brutus_fire"] = loadFX("env/fire/fx_fire_player_sm"); // brutus_fire is the name used later in script and the path after loadFX is the path to the real fx which is called fx_fire_player_sm.
broken avatar :(
×
broken avatar :(
Location: usTexas
Date Registered: 12 September 2013
Last active: 1 month ago
Posts
304
Respect
Forum Rank
Perk Hacker
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
I make maps for fun, they are mostly crap.
×
oshawat750's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
oshawat750's Contact & Social LinksOshaPooOshawat750Oshawat750
Make sure to include the fx in a csv. I would just add it to your mod.csv. Also make sure you have the path correct for the fx. And I forgot to tell you to add the fx to the top of zombiemode_spawner.gsc. I'm so sorry.  :-[

Add your fx right below init like this (the name here has to match the name at the bottom of the file so in my case they are both brutus_fire):

Code Snippet
Plaintext
init()
{
level._effect["brutus_fire"] = loadFX("env/fire/fx_fire_player_sm"); // brutus_fire is the name used later in script and the path after loadFX is the path to the real fx which is called fx_fire_player_sm.
Hmm, for some reason it didn't work, and after I changed the name of what I wanted it to be, the boss stopped spawning. Could you maybe write a full on tutorial in one post on what to add, with the effect of fx/env/electrical/fx_elec_player_torso?
Last Edit: June 01, 2016, 04:56:31 am by oshawat750
broken avatar :(
×
broken avatar :(
Location: usgeorgia
Date Registered: 24 April 2013
Last active: 3 years ago
Posts
560
Respect
Forum Rank
Zombie Enslaver
Primary Group
Mapper
My Groups
More
My Contact & Social Links
More
×
whippytrout's Groups
Mapper Has released one or more maps to the UGX-Mods community.
whippytrout's Contact & Social LinksWhippyTroutWhippyTrout
So you must have changed the wrong thing if the boss is not working any more. All I said to do was add this line at the top of zombiemode_spawner.gsc.

Code Snippet
Plaintext
level._effect["brutus_fire"] = loadFX("env/fire/fx_fire_player_sm");

brutus_fire can be named whatever you feel like naming it. For example your's could look like this:

Code Snippet
Plaintext
level._effect["avagadro_fx"] = loadFX("env/electrical/fx_elec_player_torso");

Then at the bottom your's would look like this:

Code Snippet
Plaintext
play_avagadro_fx()
{
while (1)
{
if(self.health > 0)
{
playfxontag(level._effect["avagadro_fx"],self,"j_spine4");

wait(8);
}
else
{
break;
}
}

}
broken avatar :(
×
broken avatar :(
Location: usTexas
Date Registered: 12 September 2013
Last active: 1 month ago
Posts
304
Respect
Forum Rank
Perk Hacker
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
I make maps for fun, they are mostly crap.
×
oshawat750's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
oshawat750's Contact & Social LinksOshaPooOshawat750Oshawat750
So you must have changed the wrong thing if the boss is not working any more. All I said to do was add this line at the top of zombiemode_spawner.gsc.

Code Snippet
Plaintext
level._effect["brutus_fire"] = loadFX("env/fire/fx_fire_player_sm");

brutus_fire can be named whatever you feel like naming it. For example your's could look like this:

Code Snippet
Plaintext
level._effect["avagadro_fx"] = loadFX("env/electrical/fx_elec_player_torso");

Then at the bottom your's would look like this:

Code Snippet
Plaintext
play_avagadro_fx()
{
while (1)
{
if(self.health > 0)
{
playfxontag(level._effect["avagadro_fx"],self,"j_spine4");

wait(8);
}
else
{
break;
}
}

}
Let me try it tomorrow, as I have to sleep, and I will tell you if it works.

Double Post Merge: June 01, 2016, 05:11:35 am
So you must have changed the wrong thing if the boss is not working any more. All I said to do was add this line at the top of zombiemode_spawner.gsc.

Code Snippet
Plaintext
level._effect["brutus_fire"] = loadFX("env/fire/fx_fire_player_sm");

brutus_fire can be named whatever you feel like naming it. For example your's could look like this:

Code Snippet
Plaintext
level._effect["avagadro_fx"] = loadFX("env/electrical/fx_elec_player_torso");

Then at the bottom your's would look like this:

Code Snippet
Plaintext
play_avagadro_fx()
{
while (1)
{
if(self.health > 0)
{
playfxontag(level._effect["avagadro_fx"],self,"j_spine4");

wait(8);
}
else
{
break;
}
}

}
Also, is there a way to make the boss spawn on like round 1, as its a annoying trying to get to round 5 so I can see the boss.
Last Edit: June 01, 2016, 05:11:35 am by oshawat750
broken avatar :(
×
broken avatar :(
Location: usgeorgia
Date Registered: 24 April 2013
Last active: 3 years ago
Posts
560
Respect
Forum Rank
Zombie Enslaver
Primary Group
Mapper
My Groups
More
My Contact & Social Links
More
×
whippytrout's Groups
Mapper Has released one or more maps to the UGX-Mods community.
whippytrout's Contact & Social LinksWhippyTroutWhippyTrout
Thats cool man goodnight. Also to set the rounds the boss spawns go to the bottom of the page on this post: https://ugx-mods.com/forum/index.php/topic,6935.msg75263.html#msg75263
This is the post you shared and it will show you how to set the round.  ;)

Your getting close.   :)
broken avatar :(
×
broken avatar :(
Location: usTexas
Date Registered: 12 September 2013
Last active: 1 month ago
Posts
304
Respect
Forum Rank
Perk Hacker
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
I make maps for fun, they are mostly crap.
×
oshawat750's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
oshawat750's Contact & Social LinksOshaPooOshawat750Oshawat750
Thats cool man goodnight. Also to set the rounds the boss spawns go to the bottom of the page on this post: https://ugx-mods.com/forum/index.php/topic,6935.msg75263.html#msg75263
This is the post you shared and it will show you how to set the round.  ;)

Your getting close.   :)
Yea it worked! All I need now, is how to make it drop a powerup on death!  Thank you WhippyTrout!
Last Edit: June 01, 2016, 03:48:03 pm by oshawat750
broken avatar :(
×
broken avatar :(
Location: usgeorgia
Date Registered: 24 April 2013
Last active: 3 years ago
Posts
560
Respect
Forum Rank
Zombie Enslaver
Primary Group
Mapper
My Groups
More
My Contact & Social Links
More
×
whippytrout's Groups
Mapper Has released one or more maps to the UGX-Mods community.
whippytrout's Contact & Social LinksWhippyTroutWhippyTrout
Awesome Great!  :D

So to add in a powerup spawn upon death all you have to do is the following:

In you zombiemode_spawner.gsc find this function (i'm going off the tutorial you posted so you should have added this in the past):

Code Snippet
Plaintext
play_sound_on_death()
{
      self waittill( "death" );

      playsoundatposition( "SOUND_ALIAS", self.origin );
}

Add this after the playsoundatposition:

Code Snippet
Plaintext
self thread avagadro_reward();

So it will look like this:

Code Snippet
Plaintext
play_sound_on_death()
{
      self waittill( "death" );

      playsoundatposition( "SOUND_ALIAS", self.origin );
      self thread avagadro_reward();
}

Then add the following to the bottom of zombiemode_spawner.gsc:

Code Snippet
Plaintext
avagadro_reward()
{
players = get_players();
  for( i = 0; i < players.size; i++ )
  players[i] maps\_zombiemode_score::add_to_player_score(1000);  // This gives the players 1000 points for killing the avagadro. You can change that value or delete the whole line if you want to.
wait 1;
  PlayFxOnTag( level._effect["dog_gib"], self, "tag_origin" ); // electric fx when spawning a powerup
  level thread maps\_zombiemode_powerups::special_powerup_drop( self.origin ); // This threads the powerup drop from _zombiemode_powerups.gsc. It's the same once Treyarch made and used so might as well take advantage of it. lol
}

And that's it. You should now have a random powerup spawn when you kill the avagadro.  :D
broken avatar :(
×
broken avatar :(
Location: usTexas
Date Registered: 12 September 2013
Last active: 1 month ago
Posts
304
Respect
Forum Rank
Perk Hacker
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
I make maps for fun, they are mostly crap.
×
oshawat750's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
oshawat750's Contact & Social LinksOshaPooOshawat750Oshawat750
Awesome Great!  :D

So to add in a powerup spawn upon death all you have to do is the following:

In you zombiemode_spawner.gsc find this function (i'm going off the tutorial you posted so you should have added this in the past):

Code Snippet
Plaintext
play_sound_on_death()
{
      self waittill( "death" );

      playsoundatposition( "SOUND_ALIAS", self.origin );
}

Add this after the playsoundatposition:

Code Snippet
Plaintext
self thread avagadro_reward();

So it will look like this:

Code Snippet
Plaintext
play_sound_on_death()
{
      self waittill( "death" );

      playsoundatposition( "SOUND_ALIAS", self.origin );
      self thread avagadro_reward();
}

Then add the following to the bottom of zombiemode_spawner.gsc:

Code Snippet
Plaintext
avagadro_reward()
{
players = get_players();
  for( i = 0; i < players.size; i++ )
  players[i] maps\_zombiemode_score::add_to_player_score(1000);  // This gives the players 1000 points for killing the avagadro. You can change that value or delete the whole line if you want to.
wait 1;
  PlayFxOnTag( level._effect["dog_gib"], self, "tag_origin" ); // electric fx when spawning a powerup
  level thread maps\_zombiemode_powerups::special_powerup_drop( self.origin ); // This threads the powerup drop from _zombiemode_powerups.gsc. It's the same once Treyarch made and used so might as well take advantage of it. lol
}

And that's it. You should now have a random powerup spawn when you kill the avagadro.  :D
Perfect! Thanks so much! My boss is finally finished!
broken avatar :(
×
broken avatar :(
Location: usgeorgia
Date Registered: 24 April 2013
Last active: 3 years ago
Posts
560
Respect
Forum Rank
Zombie Enslaver
Primary Group
Mapper
My Groups
More
My Contact & Social Links
More
×
whippytrout's Groups
Mapper Has released one or more maps to the UGX-Mods community.
whippytrout's Contact & Social LinksWhippyTroutWhippyTrout
Perfect! Thanks so much! My boss is finally finished!

Awesome! Glad you got it going. If you need any more help just let me know.  :D
broken avatar :(
×
broken avatar :(
Location: usTexas
Date Registered: 12 September 2013
Last active: 1 month ago
Posts
304
Respect
Forum Rank
Perk Hacker
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
I make maps for fun, they are mostly crap.
×
oshawat750's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
oshawat750's Contact & Social LinksOshaPooOshawat750Oshawat750
Awesome! Glad you got it going. If you need any more help just let me know.  :D
Okay, probably the last thing I am going to need help on about models, but could you maybe write a tutorial on how to add custom zombie models? Like, I ported the Tranzit models already, but how would I add them to my map? I converted the XModel's and Materials in AssManager, but what do I need to do next? {I didn't want to reply to this, as it is at 69 replies, but eh, fuck it.}
broken avatar :(
×
broken avatar :(
Location: usgeorgia
Date Registered: 24 April 2013
Last active: 3 years ago
Posts
560
Respect
Forum Rank
Zombie Enslaver
Primary Group
Mapper
My Groups
More
My Contact & Social Links
More
×
whippytrout's Groups
Mapper Has released one or more maps to the UGX-Mods community.
whippytrout's Contact & Social LinksWhippyTroutWhippyTrout
There is the traditional way using script but there is a new tutorial out that sounds awesome. I'm definitely going to try it out. You can actually place the zombies in radiant where you want them.

Here it is: http://ugx-mods.com/forum/index.php/topic,11285.msg125429.html#msg125429
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 24 February 2014
Last active: 4 years ago
Posts
240
Respect
Forum Rank
Mr. Elemental
Primary Group
Mapper
My Groups
More
×
josemassacre's Groups
Mapper Has released one or more maps to the UGX-Mods community.
josemassacre's Contact & Social Links
Okay, probably the last thing I am going to need help on about models, but could you maybe write a tutorial on how to add custom zombie models? Like, I ported the Tranzit models already, but how would I add them to my map? I converted the XModel's and Materials in AssManager, but what do I need to do next? {I didn't want to reply to this, as it is at 69 replies, but eh, fuck it.}
i did my pokemon models the lazy way not sure if it will work for you but go to xmodelalias in your raw folder and find these two files and just add the models in there (if you don't want the normal zombies to spawn with yours remove them) i should also add put the two files into your maps folder before editing.
https://gyazo.com/941085b01d46b11ef3d2d27d6316dc48
but bwc just posted a tutorial on adding characters and aitypes to make your own spawners which is the best way
Last Edit: June 02, 2016, 01:55:50 am by josemassacre
broken avatar :(
×
broken avatar :(
Location: usTexas
Date Registered: 12 September 2013
Last active: 1 month ago
Posts
304
Respect
Forum Rank
Perk Hacker
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
I make maps for fun, they are mostly crap.
×
oshawat750's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
oshawat750's Contact & Social LinksOshaPooOshawat750Oshawat750
There is the traditional way using script but there is a new tutorial out that sounds awesome. I'm definitely going to try it out. You can actually place the zombies in radiant where you want them.

Here it is: http://ugx-mods.com/forum/index.php/topic,11285.msg125429.html#msg125429
I tried doing it, but when doing the character part, it asked for this:

Where is this located? I'm not sure where to put the xmodels.
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 24 February 2014
Last active: 4 years ago
Posts
240
Respect
Forum Rank
Mr. Elemental
Primary Group
Mapper
My Groups
More
×
josemassacre's Groups
Mapper Has released one or more maps to the UGX-Mods community.
josemassacre's Contact & Social Links
Create the folder in your waw root folder. Make a pc folder then inside it make a main then inside that make an xmodel folder. Put your xmodels there. You'll have to do something similar with the animtrees zombies use the file generic human it's in animtrees. I had to figure this all out on my own so I bet somebody else knows a more simple way but it worked for me
Last Edit: June 02, 2016, 02:48:10 am by josemassacre

 
Loading ...