Raised This Month: $ Target: $400
 0% 

punchangle (for recoil)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 03-31-2006 , 08:08   punchangle (for recoil)
Reply With Quote #1

Is there a way to make it so the crosshair doesn't jump up and down when shooting? It's annoying

Code:
entity_set_vector(id , EV_VEC_punchangle , Float:{0.0,0.0,0.0});

I thought that by putting it in prethink would fix it, but it didn't.

Thanks.
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 03-31-2006 , 08:10  
Reply With Quote #2

Look at this:

Code:
#include <amxmodx> #include <fakemeta> #include <engine> public plugin_init() {     register_plugin("No Recoil", "0.1", "Knekter");     register_cvar("mp_norecoil", "1");     register_forward(FM_TraceLine, "forward_traceline", 1); } public client_PreThink(id) {     if(!get_cvar_num("mp_norecoil"))         return PLUGIN_CONTINUE;     if(get_user_button(id) & IN_ATTACK)         entity_set_vector(id, EV_VEC_punchangle, Float:{0.0, 0.0, 0.0});     return PLUGIN_CONTINUE; } public forward_traceline(Float:v1[3], Float:v2[3], noMonsters, id) {     if(!get_cvar_num("mp_norecoil") || !is_user_connected(id) || !is_user_alive(id))         return FMRES_IGNORED;     new hit[3], Float:fHit[3];     get_user_origin(id, hit, 4);     IVecFVec(hit, fHit);     set_tr(TR_vecEndPos, fHit);     return FMRES_IGNORED; }
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 03-31-2006 , 08:13  
Reply With Quote #3

Oh, doh. I forgot about that plugin. I think I even approved it myself

Thanks Hawk, I'll try that.
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x 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 16:44.


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