Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - !!hammerdwarf!!

Pages: 1 [2] 3
16
Suggestions & Requests / Re: Shot-warping target/Gravity Vortex
« on: June 22, 2008, 09:19:18 PM »
If you don't mind it, every 100 MS you could bend the path of the projectiles towards the point, although it would look less smooth, almost blocky, and I know that mods that go for smooth get spammed...


A periodic radius search would be simple and work well, so it would be the best option.

17
Suggestions & Requests / Re: Unownership Device for builds
« on: June 22, 2008, 09:14:13 PM »
Code: [Select]
package unownedbricks
{
    function servercmdplantbrick(%client)
    {
        %client.planting=1;
        parent::servercmdplantbrick(%client);
        %client.planting=0;
    }
    function getTrustLevel(%brick,%brickb)
    {
        if(%brickb.client.planting&&%bricka.anyonecanbuildonthisbrick)return $TrustLevel::BuildOn;
        else return parent::gettrustlevel(%bricka,%brickb);
    }
};

You just need to set the brick's anyonecanbuildonthisbrick value.

18
Suggestions & Requests / Re: Slugger's Idea Thread
« on: June 22, 2008, 09:08:46 PM »
Gone with V0002, without RTB even, so it want maybe 5 years ago. I hear it left for TBM and died with it.


Although I had a nice one with collectable modules in RTB that could be added or removed from it at will...

And one in retail that can be upgraded by spending points from kills...




But the only good guns are ones that add NEW functionality to the game, such as(at the time when it was released, and though it pains me greatly for every pixel of every character in the following mention) Ephialtes' shotgun.

Here, add some variety to your pile of stuff.

19
Suggestions & Requests / Re: Sonic Screwdriver Please
« on: June 22, 2008, 09:02:43 PM »
I'd make one that just broke when you used it and would automatically be thrown away over your shoulder(with the appropriate brick move animation) and removed from your inventory...

But a) I don't have a model, and b) I don't plan on putting effort into something like that.

20
Modification Help / Re: Need help with a script
« on: June 21, 2008, 12:32:37 AM »
you don't need the (%obj.client);
and I *THINK* you need to reset the appearance after changing the datablock.

21
Modification Help / Re: shot gun/flame thrower
« on: June 21, 2008, 12:27:21 AM »
For a shotgun, you would need to use a custom firing script to shoot multiple bullets with a slight spread.
Try
Code: [Select]
function yourgunimage::onfire(%this,%obj,%slot)
{
    %dir=%obj.getmuzzlevector(%slot);
    %pos=%obj.getmuzzlepoint(%slot);
    %spread=0.1;
    for(%i=0;%i<5;%i++)
    {
        %p=new projectile()
        {
            initialvelocity=vectorscale(vectoradd(%dir,vectorscale(getrandom(-100,100) SPC getrandom(-100,100) SPC getrandom(-100,100),0.01*%spread)),%this.projectile.muzzlevelocity);
            datablock=%this.projectile;
            initialposition=%pos;
            sourceobject=%obj;
            sourceslot=%slot;
            client=%obj.client;
        };
        missioncleanup.add(%p);
    }
}

22
Forum Games / Re: DF: Bloodglazed Fortress
« on: June 18, 2008, 04:28:22 PM »
This thread got linked to from the main dwarf fortress forum, so you just might get a visit from a pro...

http://www.bay12games.com/forum/index.php?topic=19508.0

23
Off Topic / Re: Best Place to Learn C++
« on: June 14, 2008, 10:31:34 AM »
I personally like C more, and I use MinGW, it's basically the GCC compiled specifically for windows, and there are GUIs for it out there , such as dev-c++ and possibly code blocks, although I don't know for sure.

24
Modification Help / Re: fail.
« on: June 14, 2008, 10:26:58 AM »
Well, I did write that in the forum message window, and if you want to insult readability, look at space guy's single space indent and cryptic code!

25
Modification Help / Re: fail.
« on: June 14, 2008, 10:20:25 AM »
It isn't supposed to be foolproof, just a method of encouraging them to get a better name, and thaanks for noticing the only real problem.
And is DOES save space to put it all on one line, even if it won't make it faster.

26
Modification Help / Re: fail.
« on: June 14, 2008, 10:02:53 AM »
Simple solution, as it appears to be an anti-blockhead system that failed, give people whose names are still blockhead limited bricks, say 300, and have them either be aproved by an admin or change their name to remove the limit.
Code: [Select]
package stopblockheads
{
    function servercmdplantbrick(%client)
    {
        if(strlwr(%client.name)$="blockhead"@%client.BL_ID+1&&!$pref::server::approvedblockheads[%client.BL_ID])
        {
            if(%client.bricksplanted>=300)
            {
                messageclient(%client,"","You have reached the maximum bricks for unapproved blockheads! change your name or show an admin that you have building skills to remove the limit!");
                return 10000;
            }
            if(!(%r=parent::servercmdplantbrick(%client)))%client.bricksplanted++;
            return %r;
        }
        else return parent::servercmdplantbrick(%client);
    }
    function fxDTSBrickData::OnRemove(%this,%brick)
    {
        if(strlwr(%brick.getgroup().client.name)$="blockhead"@%brick.getgroup().client.BL_ID+1&&!$pref::server::approvedblockheads[%brick.getgroup().client.BL_ID])%brick.getgroup().bricksplanted--;
        return parent::OnRemove(%this,%brick);
    }
};
(and, ephialtes, just try to find a problem with that)

27
Modification Help / Re: Lvl Coresponding to Exp?
« on: June 13, 2008, 04:46:53 PM »
Capitalization makes no diffrence.
The prolem is the ;s after the ifs

I would go with a more general equasion, where you don't have to add an if for each level.

And you need to add a call to rpgset in grantexp
And some problems in the message.

Code: [Select]
//ExpTest

function serverCmdCheckExp(%client)
    {
       messageClient(%client,'','\c5Exp: %1',%client.Exp);
}

function serverCmdCheckLvl(%client)
    {
       messageClient(%client,'','\c5Lvl: %1',%client.Lvl);
}

function Rpgset(%client)
{
If(%Client.exp >= 0)
%Client.Lvl = 1;

If(%Client.exp >= 50)
%Client.Lvl = 2;
}

function serverCmdGrantExp(%client,%victim,%amount)
{
   if(%amount<=0||%Amount>%client.Exp)
    %victim = findClientByBL_ID(%victim);
    if(!isobject(%victim)){return;}
    %victim.Exp+=%amount;
     messageClient(%client,'','Gave 2% %1',%victim.name,%amount);
    Rpgset(%victim);
}

28
Off Topic / Re: Your Desktop...
« on: June 12, 2008, 09:43:53 PM »
It's a bit cluttered. Bonus for whoever can tell me where it is from XD.
Also, note the RTB 1.045 icons(teal for tbm)
About the .mp3s:
2 interviews with tarn adams, 1 shortened version to try to fit it into audiosurf(the demo borked and acts like the full version)

29
Suggestions & Requests / Re: Turrent Gun placement
« on: June 12, 2008, 07:43:01 PM »
One of those turrets from portal: the flash version.

30
Suggestions & Requests / Re: the Universal Community Grounds - UCG
« on: June 12, 2008, 07:33:30 PM »
Well, a client-side GUI that asks you if you want to leave, and THEN does the forced disconnect and reconnect, use the password as a Very Long String containing player data about spawning and such, that is passed to the GUI before you redirect from the other. You could also have it store yourr current state password for each city-server so yo can go between them. The hardest part will be passing your internal state between servers for password checking and stuff.

Also, the datablock load remover is a Good Idea for such a thing.

Pages: 1 [2] 3