This is a mid-advanced tutorial on how to make player animations on the end of round.
Regame is recommended so you can change the delay between end of round and start of a new one.
I won't give many explanations about the code itself, it's meant for people who will understand it by reading it because edits will be necessary, you will likely need per map configurations etc as i've just made a simple code to explain how i've done it. Said so, I will just explain the process.
Video Here
So, the method i use is based on entities. We create an entity to get a camera view and we create entities to set a model and animations.
This is just a trick by replicating your player models with only celebrating animations.
You will grab your personal player models and you will decompile them. After that you must gather all required files to recompile the model that i've attached. To know which files you will need just decompile celebrate_am.mdl, it's a small model, it's intuitive and self explanatory. All that you need to know is that the QC file is the master file, the file you will use to compile the model.
So just edit QC file, replace the SMD files for the ones you need. And if required edit the plugin as you need.
To get Origin & Angles i recommend you to use this plugin.
Code: Select all
#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>
#define CT_WON 8321
enum _:g_Strings
{
EntClassName,
CelebratingMp3,
CelebratingModel
}
new Get_String[g_Strings][64] =
{
"Celebrating_Ent",
"sound/alliedmodders.mp3",
"models/celebrate_am.mdl"
}
new g_iEnt[5]
new Float:g_iOrigin[5][3] =
{
{ 540.0, 48.0, 0.1 },
{ 393.0, 107.0, 0.1 },
{ 320.0, 46.0, 0.1 },
{ 357.0, -86.0, 0.1 },
{ 580.0, -213.0, 46.0 }
}