UGX-Mods

Call of Duty 5: World at War => Tutorial Desk => Scripting => Topic started by: gympie6 on August 01, 2021, 03:52:42 pm

Title: Buried/Origins Style Headshots (hat / helmet will fly off after headshot)
Post by: gympie6 on August 01, 2021, 03:52:42 pm
This tutorial is original written by Bamskater33 aka Jei9363!
go to your _zombiemode_spawner.gsc
 
find
Code Snippet
Plaintext
zombie_head_gib( attacker )
go to
Code Snippet
Plaintext
if(isdefined(self.hatmodel))
add:
Code Snippet
Plaintext
self.hatmodel_launch = spawn("script_model",self.origin + (0,0,64));
self.hatmodel_launch setmodel(self.hatmodel);
self.hatmodel_launch PhysicsLaunch( self.hatmodel_launch.origin, (0,0,5000) ); //adjust to your hatmodel 3000 - 5000
self.hatmodel_launch thread timed_delete(5);
add to bottom of script
Code Snippet
Plaintext
timed_delete(time)
{
    wait time;
    self delete();
}
hatmodels are attached in character/ char_ger_honorguard_zombies and char_ger_honorguard_zombies2
Code Snippet
Plaintext
self.hatmodel = "your_model";
self attach(self.hatmodel, "", true);
go in asset viewer, look at the char_ models and pick out a fabulous hat for your zombie!
add to bottom
Code Snippet
Plaintext
precacheModel("your_model");
add:
Code Snippet
Plaintext
xmodel,your_model
to mod.csv
 
Update, I found his topic here: https://www.ugx-mods.com/forum/scripting/11/easy-tutorial-buriedorigins-style-headshots/1998/ (https://www.ugx-mods.com/forum/scripting/11/easy-tutorial-buriedorigins-style-headshots/1998/msg18890#msg18890)
I couldn't find it at the time so sorry for the repost.
Title: Re: Buried/Origins Style Headshots (hat / helmet will fly off after headshot)
Post by: kielrgz on August 07, 2021, 04:08:07 am
This tutorial is original written by Bamskater33 aka Jei9363!
go to your _zombiemode_spawner.gsc

find
Code Snippet
Plaintext
zombie_head_gib( attacker )
go to
Code Snippet
Plaintext
if(isdefined(self.hatmodel))
add:
Code Snippet
Plaintext
self.hatmodel_launch = spawn("script_model",self.origin + (0,0,64));
self.hatmodel_launch setmodel(self.hatmodel);
self.hatmodel_launch PhysicsLaunch( self.hatmodel_launch.origin, (0,0,5000) ); //adjust to your hatmodel 3000 - 5000
self.hatmodel_launch thread timed_delete(5);
add to bottom of script
Code Snippet
Plaintext
timed_delete(time)
{
    wait time;
    self delete();
}
hatmodels are attached in character/ char_ger_honorguard_zombies and char_ger_honorguard_zombies2
Code Snippet
Plaintext
self.hatmodel = "your_model";
self attach(self.hatmodel, "", true);
go in asset viewer, look at the char_ models and pick out a fabulous hat for your zombie!
add to bottom
Code Snippet
Plaintext
precacheModel("your_model");
add:
Code Snippet
Plaintext
xmodel,your_model
to mod.csv

very good bro. You would have to upload the zombies of origins for cod waw since they are not there. or the Templars who are great! If you have more tutorials I would love to see them! regards!
incidentally I will ask you if you can upload the one on how to revive colleagues in coop since my scripts fail in that.
Title: Re: Buried/Origins Style Headshots (hat / helmet will fly off after headshot)
Post by: gympie6 on August 07, 2021, 09:45:01 am
very good bro. You would have to upload the zombies of origins for cod waw since they are not there. or the Templars who are great! If you have more tutorials I would love to see them! regards!
incidentally I will ask you if you can upload the one on how to revive colleagues in coop since my scripts fail in that.
Hi @kielrgz ,

On your first question you have to ask the uploader Shippuden about this. Otherwise you can also join the UGX discord server because he posted the link there.

On your second question I am afraid to say that you have a bug in your mod.
You're copying it since I think your first release the same bug to your next maps over and over which means the bug is in every map?

I thought the first time I heard about this that my perks were causing this.
Me and my buddies tested this multiple times and found out there was nothing wrong.
Then I remember you also had this issue since the use of Harry's perks, so what I want to say is that you should ask help to solve the issue or fix it yourself.
I also don't have that much time to dig in your mod and test the changes multiple times.

I think it's better to ask people on the UGX discord server for help. :(
Once upon a time I looked at it to see what was going wrong and it noticed your code is stuck somewhere.