PDA

View Full Version : [REQUEST][PAID]Throw Pistol


UltraViolent
01-11-2012, 16:33
I think some of you know the throwing kive plugin.... is it possible to do something like that with the pistol ?
So a player is able to throw they're pistol with hurts an enemy ?

There was a Plugin like that for AMX-MODx

I request this for CounterStrikeSource !

You will be PAID for your efforts !!!

UltraViolent
01-12-2012, 15:18
see:
http://forums.alliedmods.net/showthread.php?p=892666

UltraViolent
01-14-2012, 05:30
noone able to do that ?

Franc1sco
01-14-2012, 10:40
Sure, edited a bit this http://forums.alliedmods.net/showthread.php?p=1160952 I think that is possible

UltraViolent
01-14-2012, 13:33
yeah i already use that plugin ... but im not good im editing

Franc1sco
01-14-2012, 14:58
I done it.

When a client drop your glock, throw this weapon.


Try it and tell me, I have not tried.


Required SDKHOOKS

UltraViolent
01-14-2012, 16:43
So
there are 2 Problems....

#1
-> sm plugins load cssthrowingglock
L 01/14/2012 - 22:38:57: [SM] Native "CreateNative" reported: Fatal error creating dynamic native!
L 01/14/2012 - 22:38:57: [SM] Displaying call stack trace for plugin "cssthrowingglock.smx":
L 01/14/2012 - 22:38:57: [SM] [0] Line 59, cssthrowingglock.sp::AskPluginLoad2()
[SM] Loaded plugin cssthrowingglock.smx successfully.

#2 if I try to grab a gun the Server crashes....

And an Idea .. could you bind the action to the use key ?
And make it only for Pistols ? It also works for Main Weapons (meaning atm it crashes ... :D)

UltraViolent
01-17-2012, 09:07
pls fix that problem !!! ;)

Bimbo1
01-21-2012, 15:27
I know I may be late, but I have done my own version of Throwing Pistols.
I used a function from pimpinjuice and a library called smlib(very useful and required to compile).

Requirements:
-SDKHooks

If you want to use the source code, you will need smlib as I said before. Just google "smlib sourcemod" to find it.

To change the velocity of the pistols thrown, change this line: ScaleVector(vec, 2000.0);
The higher the value is, higher is the velocity and the damage(as the damage taken from the pistols are calculated using the velocity).
To change just the damage of the pistols thrown, change this line:
new damage = RoundFloat((vel[0] + vel[1] + vel[2])/100.0);
The nearer to 0 the value is, the higher the damage is.

Feel free to ask anything and tell me if you find errors. If you liked it tell me too :)
Well, I do not make point of the payment(as you said it's a paid request), but I would not refuse it too.
Enjoy :)

@edited to change nearest to nearer. I am not dumb! >.< I am not an english native speaker.
@edited to update the plugin