Raised This Month: $ Target: $400
 0% 

TF2 gibs to hats


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
lyric
Veteran Member
Join Date: Sep 2012
Old 04-05-2013 , 11:57   TF2 gibs to hats
Reply With Quote #1

ok so i stumpel on this code about making gibs particles in tf2 but i would like for instead it be random hats like in freak fortress 2?

is it possible to do it with this codes?
__________________

Last edited by lyric; 04-05-2013 at 14:15.
lyric is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 04-05-2013 , 12:00   Re: TF2 gibs to hats
Reply With Quote #2

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.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
lyric
Veteran Member
Join Date: Sep 2012
Old 04-05-2013 , 12:05   Re: TF2 gibs to hats
Reply With Quote #3

Quote:
Originally Posted by Powerlord View Post
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?
__________________

Last edited by lyric; 04-05-2013 at 12:06.
lyric is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:18.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode