Quote:
Originally Posted by Leonardo
I can't wait for that awkward moment
when this plugin will be unapproved too~
|
He-he, me too...
Quote:
Originally Posted by jacek2144
I have small question. Can you create special ability called special_noanims that makes boss model doesn't use class animations and rotate with player view yaw?. It would be very userful.
|
New sub-plugin with this "ability".
Code:
#pragma semicolon 1
#include <sourcemod>
#include <freak_fortress_2>
#include <freak_fortress_2_subplugin>
public Plugin:myinfo = {
name = "Freak Fortress 2: special_noanims",
author = "RainBolt Dash",
};
public OnPluginStart2()
{
HookEvent("teamplay_round_start", event_round_start);
}
public Action:FF2_OnAbility2(index,const String:plugin_name[],const String:ability_name[],action)
{
return Plugin_Continue;
}
public Action:event_round_start(Handle:event, const String:name[], bool:dontBroadcast)
{
CreateTimer(0.41,Timer_Disable_Anims);
CreateTimer(9.31,Timer_Disable_Anims);
return Plugin_Continue;
}
public Action:Timer_Disable_Anims(Handle:hTimer)
{
decl Boss;
for (new index = 0; (Boss=GetClientOfUserId(FF2_GetBossUserId(index)))>0; index++)
{
if (FF2_HasAbility(index,this_plugin_name,"special_noanims"))
SetEntProp(Boss, Prop_Send, "m_bUseClassAnimations",0);
}
return Plugin_Continue;
}
Also I've
finnaly fix bug with 1st round without Boss' abilities... >_>