Crossbow Help meh!
Code:
#include <amxmodx>1. With this plugin enabled it is suppossed to redirect the hits from leg/stomache/arms to chest hits for higher damage, but it does the extra damage wether you have the crossbow or not, a fix plzzz? 2. Also, the crosshair too (Thanks avalanche for making the crosshair) It unfortunately works wether you have the crossbow or not. 3. The No recoil thing, when you have the crossbow only your suppossed to have no recoil (So you can be running withthe crosshair up and shoot and hit someone) But this doesnt seem to work at all -.- 4. This isnt in the plugin at all, but i want it so that when you have the crossbow you move faster (Kinda like a speed up to about 330 or even set it to a cvar). 5. When someone says /buycrossbow i want it so that it actually gives them a scout, instead of just the upgrade so they dont have to buy the scout seperately. Im relatively new to coding, and still pretty bad at it, can anyone help? Current credits for help on the plugin:: Cheap_Suit-->Set up the buying of the crossbow Avalanche--->Is the crosshair pimp |
Re: Crossbow Help meh!
You had a couple functions that were supposed to be called but weren't because you added your own event hooks and didn't merge them with the old ones.
For your no recoil (or no cone of fire)... I put the code into the fw_traceline function (merging the old with the new), and modified it a bit. It sets your end position at straight ahead (like before), but also checks if you are aiming at someone straight ahead, and sets those values for the traceline as well. I cleaned up the hitgroup changing code a bit, and changed the punchangle prethink code so that it should work (maybe it did before). Code:
Cheers! |
Re: Crossbow Help meh!
I have a question...Is there any other crosshair available other than the spec one?
|
Re: Crossbow Help meh!
Yeah, even if it was a download, maybe a sprite download? it would be incredibly small for a download so it wouldnt be a big deal.
|
Re: Crossbow Help meh!
Hmm, random crashes with the code you gave back Avalanche.
Also the crosshair still appears with a regular scout It crashed everytime i tried to get someone else to connect to check out the damage, so im not sure about that. |
Re: Crossbow Help meh!
Check your logs 10stars.
|
Re: Crossbow Help meh!
Quote:
Half-Life has a message named Crosshair, which you can use to turn the spectating crosshair on and off. That is it's intended functionality. All you do is send it: 1 (turn it on), 0 (turn it off), you can't specify what sprite to draw, as it's set in the client dll. So, what I do is send the user the Crosshair message with a value of 1, which turns on their spectating crosshair. You couldn't add any custom sprite displays unless you could modify the client dll. As for crashing when someone connects, maybe it's because it's trying to send them a message on client_connect. Comment out set_user_crosshair(id,0) in the client_connect code and see if it still crashes. And I forgot that you wanted the effects to work only with the "crossbow". So, on all the checks that sees if they are using CSW_SCOUT, add "&& g_crossbow[id]" or something, which means all the checks to see if they DON'T have a scout should add "|| !g_crossbow[id]". |
| All times are GMT -4. The time now is 04:52. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.