Quote:
Originally Posted by Powerlord
Freak Fortress 2 has random hats as gibs?
I'm pretty sure the FF2 bosses that spawn hats have a special model for it and just do it whenever a ragdoll would spawn.
|
the demopan can do it. i found this code
Code:
//Demopan's "drop stout shako on death"
{
if (FF2_GetAbilityArgument(a_index,this_plugin_name,"special_dropprop",3,0))
CreateTimer(0.01,Timer_RemoveRagdoll,GetEventInt(event, "userid"));
new prop = CreateEntityByName("prop_physics_override");
if (IsValidEntity(prop))
{
decl String:s[PLATFORM_MAX_PATH];
FF2_GetAbilityArgumentString(a_index,this_plugin_name,"special_dropprop",1,s,PLATFORM_MAX_PATH);
SetEntityModel(prop,s);
SetEntityMoveType(prop, MOVETYPE_VPHYSICS);
SetEntProp(prop, Prop_Data, "m_CollisionGroup", 1);
SetEntProp(prop, Prop_Data, "m_usSolidFlags", 16);
DispatchSpawn(prop);
decl Float:pos[3];
GetEntPropVector(client, Prop_Send, "m_vecOrigin", pos);
pos[2]+=20;
TeleportEntity(prop, pos, NULL_VECTOR, NULL_VECTOR);
new Float:duration=FF2_GetAbilityArgumentFloat(a_index,this_plugin_name,"special_dropprop",2,0.0);
if (duration>0.5)
CreateTimer(duration,RemoveEnt,EntIndexToEntRef(prop));
if its not possible with the particels code i found can this be done in a single plugin?
__________________