Public feed #380192

Someone

public text v1 · immutable
Raw Edit
·published 2007-03-03 21:21 UTC
rendered paste body
#include <amxmodx>
#include <fakemeta>


public plugin_init() {
	register_plugin(PLUGIN, VERSION, AUTHOR)
	register_forward(FM_PlayerPreThink,"fw_playerprethink")
}

public fw_playerprethink(id)
{
	if(!is_dino[id])
		return FMRES_IGNORED
	
	if( pev(id,pev_button & IN_ATTACK) && !(pev(id,pev_oldbuttons) & IN_ATTACK) )
	{
		make_fire(id)
	}

	return FMRES_IGNORED
}

public make_fire(id)
{
	new Float:origin[3], Float:angles[3];
	engfunc(EngFunc_GetBonePosition,11,origin,angles);

	// make it at "origin"
}