Raised This Month: $ Target: $400
 0% 

[ZP] No Survivor Recoil


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Mog12345
Senior Member
Join Date: Oct 2008
Old 07-17-2009 , 02:31   [ZP] No Survivor Recoil
Reply With Quote #1

No Survivor Recoil:

Simple - The survivor has no recoil!

Cvars - none

Enjoy!
Attached Files
File Type: sma Get Plugin or Get Source (zp_no_survivor_recoil.sma - 5362 views - 503 Bytes)

Last edited by Mog12345; 04-08-2010 at 03:37. Reason: Plugin moved to first post
Mog12345 is offline
NiHiLaNTh
Way Past Expiration
Join Date: May 2009
Location: Latvia
Old 07-17-2009 , 02:37   Re: Give no recoil to Survivor, sry about other thread
Reply With Quote #2

Code:
new g_punchAngle[3] = { 0.0, 0.0, 0.0 }
Somewhere at the code...
Code:
set_pev(id, pev_punchangle, g_punchAngle)
__________________

NiHiLaNTh is offline
Send a message via Skype™ to NiHiLaNTh
Mog12345
Senior Member
Join Date: Oct 2008
Old 07-17-2009 , 02:38   Re: Give no recoil to Survivor, sry about other thread
Reply With Quote #3

So what do you suggest I do?

Last edited by Mog12345; 04-06-2010 at 23:27.
Mog12345 is offline
NiHiLaNTh
Way Past Expiration
Join Date: May 2009
Location: Latvia
Old 07-17-2009 , 02:47   Re: Give no recoil to Survivor, sry about other thread
Reply With Quote #4

Code:
#include <amxmodx>
#include <fakemeta>
#include <zombieplague>

new g_punchAngle[3] = { 0.0, 0.0, 0.0 }

public plugin_init()
{
        register_plugin("LOL", "OMFG", "LMAO")

        register_forward(FM_PlayerPreThink, "fwd_player_think")
}

public fwd_player_think(id)
{
        if (is_user_alive(id))
        {
                if (zp_get_user_survivor(id))
                {
                        set_pev(id, pev_punchangle, g_punchAngle)
                }
        }
}
__________________

NiHiLaNTh is offline
Send a message via Skype™ to NiHiLaNTh
Mog12345
Senior Member
Join Date: Oct 2008
Old 07-17-2009 , 03:09   Re: Give no recoil to Survivor, sry about other thread
Reply With Quote #5

Okay, I tried putting that into the code in the best places possible, but when I compile, i get:

Error: Undefined symbol: zp_get_user_survivor
Mog12345 is offline
Fry!
Veteran Member
Join Date: Apr 2008
Location: Latvia
Old 07-17-2009 , 03:18   Re: Give no recoil to Survivor, sry about other thread
Reply With Quote #6

Do you have the newest zombieplague.inc in your scripting/include folder? Cuz looks like you don't have it.
__________________
Quote:
Originally Posted by wisam187
why all the great scriptors..... always.... leave and let their works go into oblivion ???
i miss your way in making outstanding plugins...
this forum needs lots of the likes of you..... and less of the idiots that spread right now.
Fry! is offline
Mog12345
Senior Member
Join Date: Oct 2008
Old 07-17-2009 , 03:30   Re: Give no recoil to Survivor, sry about other thread
Reply With Quote #7

Actually, I tried Nihilanth's code and it works, however, the screen sometimes jerks up when shooting. The code that's in the agent zero i provided makes it so the screen does not jerk up and down. I know I'm a really bad coder and I've absolutely morphed the code..

Last edited by Mog12345; 07-17-2009 at 12:43.
Mog12345 is offline
Old 07-18-2009, 03:02
Mog12345
This message has been deleted by Mog12345. Reason: Plugin moved to first post
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 07-18-2009 , 03:08   Re: Give no recoil to Survivor, sry about other thread
Reply With Quote #9

Quote:
Originally Posted by Mog12345 View Post
I fixed it! It works flawlessly now, with no screen jerking up and down.

Yes, yes, it compiles with 5 warnings that I really don't know how to fix, but trust me, it works perfectly in-game.
:/

PHP Code:
#include <amxmodx>
#include <fakemeta>
#include <zombieplague>
#include <engine>

new Float:gPunchAngle[3] = { 0.00.00.0 }
new 
g_maxplayers

public plugin_init()
{
    
register_plugin("No Survivor Recoil""v1.0""ZP")
    
g_maxplayers get_maxplayers()
}

public 
server_frame()
{
    for ( new 
id 1id <= g_maxplayersid++ )         
    {
        if ( 
is_user_alive(id) && zp_get_user_survivor(id) )
            
set_pev(idpev_punchanglegPunchAngle);
    }

__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS is offline
Mog12345
Senior Member
Join Date: Oct 2008
Old 07-18-2009 , 04:25   Re: Give no recoil to Survivor, sry about other thread
Reply With Quote #10

Plugin updated in first post

Last edited by Mog12345; 04-06-2010 at 23:07.
Mog12345 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 17:00.


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