Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Donate
Collapse

Plutonium

RoyBlunkundefined

RoyBlunk

@RoyBlunk
About
Posts
3
Topics
2
Shares
0
Groups
0
Followers
5
Following
5

Posts

Recent Best Controversial

  • How to check if player is within silent aim radius?
    RoyBlunkundefined RoyBlunk

    Hello community. I have created a script which can kill all players directly as soon as i shoot. now i want to extend this to a silent aim functionality. How do I calculate correctly that players who are visible and somewhere in a certain radius around the crosshair will be hit?

    It would also be interesting to know how to implement the damage correctly. I have currently set 99999 because it seems I'm missing other aspects. It would be advantageous to have the real damage of the weapon here, regardless of whether the player is behind a wall or not.

    Does anyone have experience with those scenarios and is willing to solve this?

    init()
    {
        level thread onPlayerConnect();
    }
    
    onPlayerConnect()
    {
        for (;;)
        {
            level waittill("connected", player);
            player thread onPlayerSpawned();
        }
    }
    
    onPlayerSpawned()
    {
        self endon("disconnect");
    
        if (!self isHost())
            return;
    
        self.isMagicShotActive = false;
    
        self thread monitorToggleKey();
        self thread monitorWeaponFire();
    }
    
    monitorToggleKey()
    {
        self endon("disconnect");
    
        lastToggleTime = 0;
    
        for (;;)
        {
            wait 0.05;
    
            if (self actionslotthreebuttonpressed())
            {
                currTime = getTime();
                if (currTime - lastToggleTime > 0.5)
                {
                    lastToggleTime = currTime;
    
                    self.isMagicShotActive = !self.isMagicShotActive;
    
                    if (self.isMagicShotActive)
                        self iPrintlnBold("^2Magic Shot aktiviert!");
                    else
                        self iPrintlnBold("^1Magic Shot deaktiviert!");
                }
            }
        }
    }
    
    monitorWeaponFire()
    {
        self endon("disconnect");
    
        for (;;)
        {
            self waittill("weapon_fired");
    
            if (self.isMagicShotActive)
            {
                self thread damageAllEnemies();
            }
        }
    }
    
    damageAllEnemies()
    {
        foreach (player in level.players)
        {
            if (!isAlive(player))
                continue;
    
            if (player == self)
                continue;
    
            playerPos = player getOrigin();
    		
    	// How to check if player is within silent aim radius?
            // How to get real weapon damage?
    	radiusDamage(playerPos, 99999, 99999, 99999, self);
    
            wait 0.01;
        }
    }
    
    BO2 Modding Support & Discussion

  • Is there any silent aim gsc file for private games?
    RoyBlunkundefined RoyBlunk

    WolflexZ Are you familiar with such a mod menu which has those settings?

    BO2 Modding Support & Discussion

  • Is there any silent aim gsc file for private games?
    RoyBlunkundefined RoyBlunk

    Hi guys. I'm searching for a silent aim mod menu which allows the host on private games to kill people within a specific pov which can be set via code. There just needs to be a small HUD information to know is the cheat is activated or not. So there has to be a toggle with a specific key.

    Is there something out there or anyone interessted in doing this? In the forum multiple people are interested in this but I just couldnt find something which works for pc. It just needs to be a gsc file to pleace within the scripts/mp/ folder in T6 on pc.

    When I'm trying this on my own the bugs are crazy. I have the feeling some gsc genius will code this within 5 minutes or just copy pastes this from his own references.

    BO2 Modding Support & Discussion
  • 1 / 1
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Donate