Page 33 of 33 FirstFirst ... 23313233
Results 321 to 322 of 322

Thread: Hidden:SourceMod (Scripts, Ideas and Discussions)

  1. #321
    Join Date
    Nov 2012
    Location
    Germany
    Posts
    68

    Default

    Quote Originally Posted by Paegus View Post
    I didn't mean forever just to see if the original starts working again. Radio+ was a fairly half-hearted re-hash of the communications plug to which I lost the source...

    I'd rather fix r+ as it would likely interfere with others as well... possibly depending on load order.
    I see, I'll try it tomorrow on my Private Server and report back

  2. #322
    Join Date
    Oct 2013
    Posts
    1

    Default

    Hiya guys,

    I've got a request and a half-finished plugin to go with it.

    Back on https://forums.alliedmods.net/showth...=199187&page=4 I read about whether or not it would be able to turn the Hidden visible model of paegus' visibility plugin (same link, page one) into that of an IRIS unit. After buggering about for a bit it turned out to be possible, but I also wanted it to use a different command/key, so I could become both a visible hidden as a disguised-as-an-IRIS-unit hidden. Being a noobish amateur at best when it comes to programming/coding/modding, I asked paegus for help.

    He did what he did best (being plain awesome when it comes to mods for Hidden) and I was able to move among my prey and freaking them out, but at the same time I could be creepy by flashing the visible Hidden model every now and then.
    There is just the one problem, though: When the hidden turns into the IRIS model, he's quite easily spotted, seeing as he won't have a gun.

    Paegus has, to my meager understanding, already written the code needed for what I'd like in his phys vs. pistols and autobot plugins.

    For giving the gun (shotgun has my preference) (Autobot plugin):
    PHP Code:
    }
    public 
    event_RoundStart(Handle:event, const String:name[], bool:dontBroadcast) {
        for (new 
    1<= MaxClientsi++) {
            if (
                
    IsClientInGame(i) &&                    // Connected and in-game
                
    IsPlayerAlive(i) &&                        // Alive
                
    GetClientTeam(i) == HDN_TEAM_IRIS &&    // IRIS
                
    IsFakeClient(i)                            // A bot
            
    ) {
                
    SetEntProp(iProp_Send"m_iNewClass"0);        // Set as Assault.
                
    SetEntProp(iProp_Send"m_iPrimary"2);        // Set shotgun.
                
    SetEntData(ig_osAmmoShotgun32true);        // Give ammo.
                
    GivePlayerItem(i"weapon_shotgun");            // Give shotgun
                
    FakeClientCommand(i"use weapon_shotgun");        // Use shotgun.
            
    }
        }

    And for taking it away (Phys vs Pistols plugin):
    PHP Code:
    }

    public 
    event_RoundStartHandle:event, const String:name[], bool:dontBroadcast) {
        if (
    GetConVarInt(cvarPVP) == 1) {    // PVP mode enabled
            
    for (new iClient 1iClient <= MaxClientsiClient++) {
                if (
                    
    IsClientInGame(iClient) &&
                    
    IsPlayerAlive(iClient)
                ) {
                    
    decl iWeapon;
                    if (
    GetClientTeam(iClient) == HDN_TEAM_IRIS) {
                        
    // Strip primary weapons
                        
    iWeapon GetPlayerWeaponSlot(iClient,0);
                        
    RemovePlayerItem(iClientiWeapon);
                        
    RemoveEdict(iWeapon);
                        
                        
    ClientCommand(iClient"slot2");
                        
                        
                        
    decl secAmmoOffset;
                        if (
    GetEntProp(iClientProp_Send"m_iSecondary") == 0) {
                            
    secAmmoOffset FindSendPropOffs("CSDKPlayer","m_iAmmo") + 4
                        
    } else {
                            
    secAmmoOffset FindSendPropOffs("CSDKPlayer","m_iAmmo") + 5
                        
    }
                        
    SetEntData(iClientsecAmmoOffset64true)
                        
                        
                    } else {
                        
    // Strip any grenades.
                        
    iWeapon GetPlayerWeaponSlot(iClient,1);
                        
    //LogToGame("No nades: %d", iWeapon);
                        
    if (iWeapon 0) {
                            
    RemovePlayerItem(iClientiWeapon);
                            
    RemoveEdict(iWeapon);
                        }
                    }
                }
            }
        }

    So here's what I'd like to ask someone: Is there anyone both willing and able to make it so that when I turn into an IRIS model, I also get (the model of) a shotgun?
    Ammo isn't necessary, for I don't want to be able to shoot people; I simply want to add the creep factor.
    Trust me when I tell you that people do indeed freak out when you tell them you've just walked past them and they didn't even notice you, as I did a couple of times just a few days ago.

    I've also attached the plugin: hsm_disguise.zip

    Should anyone be able to make this plugin even more awesome, I would bestow upon you eternal kudos.

    Kind regards,

    Fillask

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •