AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Adjusting First Person Camera (https://forums.alliedmods.net/showthread.php?t=98580)

........ 07-26-2009 22:01

Adjusting First Person Camera
 
I would apreciate to know how to adjust the first person camera, in my case, lower.

I have been looking at the 3rd person plugins, but they have nothing to do, since it's third person view, and it doesent show neither weapons, nor the other stuff.

Also, I found nothing on AMXMODX documentation.

So, I'd need, either the name of the function, or an example.

Thanks in advance.

jim_yang 07-26-2009 22:30

Re: Adjusting First Person Camera
 
Code:

#include <amxmodx>
#include <fakemeta>
 
#define PLUGIN "Test"
#define AUTHOR "Jim"
#define VERSION "1.0"
 
public plugin_init()
{
    register_plugin(PLUGIN, VERSION, AUTHOR)
    register_clcmd("test", "test")
}
 
public test(id)
{
    new Float:ofs[3]
    pev(id, pev_view_ofs, ofs)
    ofs[2] -= 8.0
    set_pev(id, pev_view_ofs, ofs)
    return 1
}

I don't know if this is what you want

........ 07-29-2009 00:16

Re: Adjusting First Person Camera
 
Quote:

Originally Posted by jim_yang (Post 882640)
Code:

#include <amxmodx>
#include <fakemeta>
 
#define PLUGIN "Test"
#define AUTHOR "Jim"
#define VERSION "1.0"
 
public plugin_init()
{
    register_plugin(PLUGIN, VERSION, AUTHOR)
    register_clcmd("test", "test")
}
 
public test(id)
{
    new Float:ofs[3]
    pev(id, pev_view_ofs, ofs)
    ofs[2] -= 8.0
    set_pev(id, pev_view_ofs, ofs)
    return 1
}

I don't know if this is what you want

Thank you very much


All times are GMT -4. The time now is 18:26.

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