AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Faking a player entity? (https://forums.alliedmods.net/showthread.php?t=54397)

hlstriker 04-24-2007 16:16

Faking a player entity?
 
Would it be possible to create an entity to have the attributes of a player? I don't want the entity to think at all, just to be there.

The reason for this would be to create multiple of these fake entities, and place them in random spots in a map. That way if a hacker comes into the server with autoaim, they will target that entity.

Nican 04-24-2007 16:20

Re: Faking a player entity?
 
I belive this might help you:
http://forums.alliedmods.net/showthr...highlight=fake

hlstriker 04-24-2007 16:53

Re: Faking a player entity?
 
I have read that before, but would that make an aimbot trigger to shoot it?

Nican 04-24-2007 17:10

Re: Faking a player entity?
 
Welcome to the world of making a Artificial Intelligence

It's not as easy as it looks, you have to process frame by frame what he would have to do, walk forward, aim and others...

I found this function from "Arena" of "MrDev", but i am not sure of how to make them shoot
PHP Code:

stock Set_AimingCoreIDTargetID )
{
    new 
Float:CoreAngles[3] = { 0.00.00.0 };
    
    new 
Float:CoreOrigin[3];
    
pev(CoreIDpev_originCoreOrigin );
    
    new 
Float:TargetOrigin[3];
    
pev(TargetIDpev_originTargetOrigin );
    
    new 
anglemode:Mode degrees;
    
    new 
Float:DeltaOrigin[3];
    for ( new 
03i++ )
        
DeltaOrigin[i] = CoreOrigin[i] - TargetOrigin[i];
        
    
CoreAngles[x] = floatatanDeltaOrigin[z] / Distance2DDeltaOrigin[x], DeltaOrigin[y] ), Mode ) ;
    
CoreAngles[y] = floatatanDeltaOrigin[y] / DeltaOrigin[x], Mode );
    
    ( 
DeltaOrigin[x] >= 0.0 ) ? ( CoreAngles[y] += 180.0 ): ( CoreAngles[y] += 0.0 )
    
    
set_pev(CoreIDpev_anglesCoreAngles,);
    
set_pev(CoreIDpev_fixangle);


Well, good luck in making the first AI for AMXX

hlstriker 04-24-2007 17:20

Re: Faking a player entity?
 
Oooh Nican, I think you misunderstood what I was asking. I need just an entity that an aimbot (from hackers) will target. I want it so the hackers aimbot will trigger and aim at the entity I want to make.

My problem is I don't know how hackers aimbots work to get them to aim at the entity.

Nican 04-24-2007 17:45

Re: Faking a player entity?
 
Hmm... There is so many different types of aim-bots, and i never sow one for my self D:

I belive I can not help you :/


All times are GMT -4. The time now is 06:39.

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