PDA

View Full Version : punch


|OnEHiTwOnDeR|SoCal
04-11-2007, 04:37 PM
any way this can be done..punching a player. I believe a few yrs ago zor made this but was glitchy. Oh it was called brassnuckes.amxx cant find it anywhere. used to be on here wayy back. Is this still possible?

diamond-optic
04-11-2007, 11:09 PM
ya it was a dod port for the brassknuckles plugin..

i know i have one his versions around here somewhere..

Wilson [29th ID]
04-12-2007, 01:48 AM
The only reason I haven't made a brass knuckles or buttsmack plugin is because of the lack of client side effect.

I can make it look like you're swinging your gun to everyone else, but there is no animation in the v_ model of the weapons and I can't think of a way to make it look like you're swinging it.

But I'm open to ideas.

|OnEHiTwOnDeR|SoCal
04-12-2007, 02:49 AM
well how it was before it showed to the client himself (me, or u playing and seeing 1st person) the animation of a swing of a punch - dont recall exactly killing anyone with it due to the bugs it had but yea i remember that animation being done by Zor if im not mistaken. I think the brass knuckles where taken from cs not sure might be wrong.

Wilson:
"I can make it look like you're swinging your gun to everyone else, but there is no animation in the v_ model of the weapons and I can't think of a way to make it look like you're swinging it."

that a bit confuses me? u can or cant make it look like its swinging?

{SR} *Raggy*
04-12-2007, 06:41 AM
You just contradicted yourself(I can't spell that damn word :P)

Wilson [29th ID]
04-12-2007, 11:01 AM
I can't make it look like you're swinging a gun. It'd be nice to figure out how to do that though, so no models would have to be downloaded.

diamond-optic
04-12-2007, 08:33 PM
lol just noticed this (http://forums.alliedmods.net/showthread.php?t=53708) one at the amxx forums...

=|[76AD]|= TatsuSaisei
04-12-2007, 09:20 PM
lol just noticed this (http://forums.alliedmods.net/showthread.php?t=53708) one at the amxx forums...

few pages in was this

http://forums.alliedmods.net/showpost.php?p=206199&postcount=11

Wilson [29th ID]
04-18-2007, 03:42 AM
Tatsu, that plugin has no models though..

Diamond, that is badass.

Wilson [29th ID]
12-20-2007, 06:16 AM
All right check this out. Register clcmd to butt_smack and press the button in game.


public butt_smack( id ) {
new Float:m_pitch = 25.0;
new Float:m_yaw = 25.0;

engfunc( EngFunc_CrosshairAngle, id, m_pitch, m_yaw );
emit_sound(id, CHAN_WEAPON, "weapons/knifeswing.wav", VOL_NORM, ATTN_NORM, 0, PITCH_NORM);

set_task( Float:0.1, "butt_normal", id );
return PLUGIN_HANDLED;
}

public butt_normal( id ) engfunc( EngFunc_CrosshairAngle, id, Float:0.0, Float:0.0 );


That's the furthest over the weapon will go. I would do a punchangle, but the xhair gets moved and it winds up looking like you got buttsmacked. If you have any other ideas of how to make it look like you're swinging your gun, please voice them.

Now to make that distance-based melee attack to harm those near you.

TigerMan4
12-20-2007, 09:10 AM
On my K43 , I dont see myself swinging the gun now...and I dont think I ever used a custom model for that gun.

it doesnt bother me , it makes the noise and I know I klunked people when they die...

Wilson [29th ID]
12-20-2007, 02:27 PM
It should swing it like half way. You should be able to notice.

Try increasing the time in the first parameter of the set_task. Maybe I just get better fps or something.