Raised This Month: $ Target: $400
 0% 

[REQ] NightCrawler Mod


Post New Thread Reply   
 
Thread Tools Display Modes
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 05-14-2013 , 10:44   Re: [REQ] NightCrawler Mod
Reply With Quote #91

Or not.
I have private NightCrawler, it is perfect, put that just ruin the game
__________________
Jhob94 is offline
oxygen935
Veteran Member
Join Date: Jun 2012
Location: Athens, Greece
Old 05-14-2013 , 11:35   Re: [REQ] NightCrawler Mod
Reply With Quote #92

Quote:
Originally Posted by Jhob94 View Post
Or not.
I have private NightCrawler, it is perfect, put that just ruin the game
This is your personal thought...
And this doesn't mean that your private mod is really perfect
__________________
Quote:
Originally Posted by quark View Post
You're a genius
Stopped any pawn work cause of university for computer science
oxygen935 is offline
Send a message via Skype™ to oxygen935
pokemonmaster
princess milk
Join Date: Nov 2010
Location: Somewhere in this world
Old 05-14-2013 , 11:57   Re: [REQ] NightCrawler Mod
Reply With Quote #93

Quote:
And every time an alien gets close there is a sensor that does a sound more and more heavy as closer as the alien gets to him...
Well, it is missing the sound part
PHP Code:
#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>

// --------------------------------------------------------------------
#define MAX_RADIUS    600.0        // OR distance, doesn't matter
#define DECREMENT_AT_TIME 67

#define TASK_HUD    81732512371
#define NC_TEAM    2        // 1 for Terrorist, 2 for CTs
#define UPDATE_TIME 0.5
// --------------------------------------------------------------------

#define IsAlive(%1) (gAlive & (1<<%1))
#define SetAlive(%1) (gAlive |= (1<<%1))
#define SetNotAlive(%1) (gAlive &= ~(1<<%1))

new iMaxRadius
new g_szPlayerMessage[33][50]
new 
g_iMaxPlayers
new gAlive
new g_szDefaultMessage[30]

public 
plugin_init()
{
    
register_plugin("Near NC detector""1.0""Khalid :)")
    
    
RegisterHam(Ham_Spawn"player""Fwd_Spawn"1)
    
RegisterHam(Ham_Killed"player""Fwd_Killed"0)
    
    
g_iMaxPlayers get_maxplayers()
    
    
iMaxRadius floatround(MAX_RADIUS)
    new 
iNum iMaxRadius DECREMENT_AT_TIME
    
    add
(g_szDefaultMessagecharsmax(g_szDefaultMessage), "[")
    while(
iNum)
    {
        --
iNum
        add
(g_szDefaultMessagecharsmax(g_szDefaultMessage), "-")
    }
    
add(g_szDefaultMessagecharsmax(g_szDefaultMessage), "]")
}

public 
client_disconnect(id)
{
    
id += TASK_HUD
    
    
if(task_exists(id))
    {
        
remove_task(id)
    }
}

public 
Fwd_Spawn(id)
{
    if(!
is_user_alive(id))
    {
        return;
    }
    
    if(
get_user_team(id) == NC_TEAM)
    {
        return;
    }
    
    
SetAlive(id)
    
set_task(UPDATE_TIME"ShowHud"TASK_HUD id, .flags "b")
}

public 
Fwd_Killed(id)
{
    
SetNotAlive(id)
    if(
task_exists(id TASK_HUD))
        
remove_task(id TASK_HUD)
}

public 
ShowHud(taskid)
{
    new 
id taskid TASK_HUD
    
    
if(!IsAlive(id))
    {
        
remove_task(taskid)
        return;
    }
    
    static 
Float:fOrigin[3]
    
pev(idpev_originfOrigin)
    
    static 
iEntiFound
    iEnt 
0iFound 0
    
    
static iColor[3]; iColor = { 00}
    
    
// Nearest player
    
while( (iEnt engfunc(EngFunc_FindEntityInSphereiEntfOriginMAX_RADIUS ) ) )
    {
        if(
iEnt g_iMaxPlayers || iEnt == id)
        {
            continue;
        }
        
        if(!
IsAlive(id))
        {
            continue;
        }
        
        if(
get_user_team(iEnt) != NC_TEAM)
        {
            continue;
        }
        
        
distance_rate(idfOriginiEntiColor)
        
iFound 1
        
break;
    }
    
    
set_hudmessage(iColor[0], iColor[1], iColor[2], -1.00.6000.0UPDATE_TIME 0.10.00.1)
    
show_hudmessage(idiFound g_szPlayerMessage[id] : g_szDefaultMessage)
}

stock distance_rate(idFloat:Origin1[3], iEntiColor[3])
{
    static 
Float:Origin2[3]; pev(iEntpev_originOrigin2)
    
    new 
Float:flDistance get_distance_f(Origin1Origin2)
    
    if(
flDistance MAX_RADIUS)
        return;
    
    new 
Float:flNewDistance MAX_RADIUS DECREMENT_AT_TIMEFloat:flOldDistance  MAX_RADIUS
    
    
new 1
    
while( flNewDistance >= )
    {
        if( 
flNewDistance <= flDistance <= flOldDistance )
            break;
        
        
flOldDistance flNewDistanceflNewDistance -= DECREMENT_AT_TIME
        
++k
    
}
    
    
set_player_msg_string(idkiColor)
}

public 
set_player_msg_string(idiNumiColor[3])
{
    
setc(g_szPlayerMessage[id], charsmax(g_szPlayerMessage), 0)
    
    static 
iLeftiAdd
    
new szAdd[30], szMark[30]
    if(
iNum < ( iAdd = (iMaxRadius DECREMENT_AT_TIME) ) )
    {
        
iLeft iAdd iNum
        iAdd 
iLeft 2
        
        
while(iAdd > -1)
        {
            
szAdd[iAdd] = '-'
            
            
--iAdd
        
}
    }
    
    while(
iNum > -1)
    {
        
szMark[iNum] = '!'
        
--iNum
    
}
    
    if(
iLeft == || !iLeft)
    {
        
iColor = { 2550}
    }
    
    else if( 
iLeft <= ( (iMaxRadius DECREMENT_AT_TIME) / ) )
    {
        
iColor = { 255255}
    }
    
    else
    {
        
iColor = { 5020550 }
    }
    
    
formatex(g_szPlayerMessage[id], charsmax(g_szPlayerMessage[]), "[%s%s%s]"szAddszMarkszAdd)

__________________
اَشْهَدُ اَنْ لَّآ اِلٰهَ اِلَّا اللہُ وَحْدَه لَا شَرِيْكَ لَه وَ اَشْهَدُ اَنَّ مُحَمَّدًا عَبْدُه وَرَسُوْلُه
No longer active in AMXX. Sorry.

Last edited by pokemonmaster; 02-16-2014 at 06:24. Reason: Code edited.
pokemonmaster is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 05-14-2013 , 12:50   Re: [REQ] NightCrawler Mod
Reply With Quote #94

Quote:
Originally Posted by oxygen935 View Post
This is your personal thought...
And this doesn't mean that your private mod is really perfect
Perfection Is Defined By Each One Not For All
__________________
Jhob94 is offline
Moody92
Veteran Member
Join Date: May 2011
Location: Oman
Old 05-14-2013 , 13:06   Re: [REQ] NightCrawler Mod
Reply With Quote #95

Quote:
Originally Posted by Jhob94 View Post
Perfection Is Defined By Each One Not For All
oxygen935 got a point.

The current nightcrawler has many flaws, even exolent stated that when he said " I may rewrite nc from the scratch"

So I guess nc isn't perfect anymore.
Moody92 is offline
quilhos
Veteran Member
Join Date: Jun 2010
Old 05-14-2013 , 13:13   Re: [REQ] NightCrawler Mod
Reply With Quote #96

When I have the time I will start working on my own nc, then I will share it here
__________________
ELO RATING SYSTEM - SQL [COMPLETE]
Quote:
Originally Posted by Liverwiz View Post
DDDRRRRAAAAMMMMAAAAA!!!???

Put this shit on pause while i go get some popcorn!!
quilhos is offline
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 05-14-2013 , 14:47   AW: [REQ] NightCrawler Mod
Reply With Quote #97

Well, let's sit all together and make a community project. ^^
__________________
Kia is offline
bricir
Junior Member
Join Date: May 2013
Old 05-14-2013 , 15:41   Re: [REQ] NightCrawler Mod
Reply With Quote #98

good idea !
bricir is offline
bricir
Junior Member
Join Date: May 2013
Old 05-14-2013 , 15:48   Re: [REQ] NightCrawler Mod
Reply With Quote #99

thanks man !!!!
bricir is offline
oxygen935
Veteran Member
Join Date: Jun 2012
Location: Athens, Greece
Old 05-14-2013 , 15:57   Re: AW: [REQ] NightCrawler Mod
Reply With Quote #100

Quote:
Originally Posted by Kia View Post
Well, let's sit all together and make a community project. ^^
i really like your idea...
it sounds cool...
__________________
Quote:
Originally Posted by quark View Post
You're a genius
Stopped any pawn work cause of university for computer science
oxygen935 is offline
Send a message via Skype™ to oxygen935
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 21:21.


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