Raised This Month: $ Target: $400
 0% 

Blockmaker - Magic Carpet [H] [E] [L] [P]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
cikjam
Senior Member
Join Date: Feb 2009
Location: Australia
Old 06-25-2009 , 22:50   Blockmaker - Magic Carpet [H] [E] [L] [P]
Reply With Quote #1

Hello,

I need the Block Action for a Magic Carpet block, for blockmaker 4.01.
A Terrorist Only one and a Counter-Terrorist only one.

When you go on the block, you hold forward and wherever you aim you will go. You will be able to go Up, Down, Left, Right.

I've tested the BCM one, but that only stays one level and when you use the magic carpet and you like slip off eventually. It is also coded different, I don't know how to make it into Blockmaker.

Please Reply,
Thankyou.

P.S: I posted it here because I dont need a whole plugin, I only need the Block Action.

+++karma

Last edited by cikjam; 06-27-2009 at 00:06.
cikjam is offline
cikjam
Senior Member
Join Date: Feb 2009
Location: Australia
Old 06-26-2009 , 07:39   Re: Blockmaker - Magic Carpet [H] [E] [L] [P]
Reply With Quote #2

If someone could make this, would be mad. Please read it.
cikjam is offline
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 06-26-2009 , 07:42   Re: Blockmaker - Magic Carpet [H] [E] [L] [P]
Reply With Quote #3

Bumping is not allowed.

You must wait 2 weeks before bumping!
__________________
crazyeffect is offline
Send a message via MSN to crazyeffect
cikjam
Senior Member
Join Date: Feb 2009
Location: Australia
Old 06-26-2009 , 08:07   Re: Blockmaker - Magic Carpet [H] [E] [L] [P]
Reply With Quote #4

Oh well, No one really ever replies on this stuff.
I want it =[
cikjam is offline
zacky
Senior Member
Join Date: Mar 2008
Location: Sweden
Old 06-26-2009 , 08:14   Re: Blockmaker - Magic Carpet [H] [E] [L] [P]
Reply With Quote #5

I don't think anyone will help you with this because you will have to do many actions with magic carpet block.
zacky is offline
Send a message via Skype™ to zacky
cikjam
Senior Member
Join Date: Feb 2009
Location: Australia
Old 06-26-2009 , 08:47   Re: Blockmaker - Magic Carpet [H] [E] [L] [P]
Reply With Quote #6

aww
cikjam is offline
Xellath
Veteran Member
Join Date: Dec 2007
Location: Sweden
Old 06-26-2009 , 08:49   Re: Blockmaker - Magic Carpet [H] [E] [L] [P]
Reply With Quote #7

It wont use that much actions, just hook FM_Touch and move the block when the user stands on it and uses w, a, s and d.
__________________
Achievements API - a simple way for you to create your OWN custom achievements!
Xellath is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 06-26-2009 , 09:15   Re: Blockmaker - Magic Carpet [H] [E] [L] [P]
Reply With Quote #8

Xellath you are right, but there also new round, save load, grab etc such stuff with magic carpet, i did one in my bm and i know

PHP Code:
public fwdTouchBlockiEntityid ) {
    if( 
gPlayerAlive[id] ) {
        new 
blockType peviEntitypev_body );
        
        switch( 
blockType ) {
            
// [ ... ]
            
case BM_MAGICCARPET: {
                if( 
get_user_team(id) == ) {
                    new 
Float:vVelocity[3];
                    
pevidpev_velocityvVelocity );
                    
vVelocity[2] = 0.0;
                    
set_peviEntitypev_velocityvVelocity );
                }
            }
        } 
And magiccarpet's movetype should be MOVETYPE_FLY
__________________
xPaw is offline
cikjam
Senior Member
Join Date: Feb 2009
Location: Australia
Old 06-26-2009 , 09:38   Re: Blockmaker - Magic Carpet [H] [E] [L] [P]
Reply With Quote #9

So what do i do with this?
I dont know much about scripting.
Can you tell me what the action thing will be. Example:
Code:
actionInvincible(id, OverrideTimer)
{
    new Float:fTime = halflife_time();
    
    if (fTime >= gfInvincibleNextUse[id] || OverrideTimer)
    {
        new Float:fTimeout = get_cvar_float("bm_invincibletime");
        
        set_user_godmode(id, 1);
        set_task(fTimeout, "taskInvincibleRemove", TASK_INVINCIBLE + id, "", 0, "a", 1);
        
        //only make player glow white for invincibility if player isn't already stealth
        if (fTime >= gfStealthTimeOut[id])
        {
            set_user_rendering(id, kRenderFxGlowShell, 255, 255, 255, kRenderNormal, 16);
        }
        
        //play invincibility sound
        emit_sound(id, CHAN_STATIC, gszInvincibleSound, 1.0, ATTN_NORM, 0, PITCH_NORM);
        
        gfInvincibleTimeOut[id] = fTime + fTimeout;
        gfInvincibleNextUse[id] = fTime + fTimeout + get_cvar_float("bm_invinciblecooldown");
    }
    else
    {
        set_hudmessage(gHudRed, gHudGreen, gHudBlue, gfTextX, gfTextY, gHudEffects, gfHudFxTime, gfHudHoldTime, gfHudFadeInTime, gfHudFadeOutTime, gHudChannel);
        show_hudmessage(id, "Wait Time: %.1f", gfInvincibleNextUse[id] - fTime);
    }
}
And Where do i put the MOVETYPE_FLY and anything else i need to do.
On which Lines.
cikjam is offline
zacky
Senior Member
Join Date: Mar 2008
Location: Sweden
Old 06-26-2009 , 10:37   Re: Blockmaker - Magic Carpet [H] [E] [L] [P]
Reply With Quote #10

You dont even have an action, you check if player is touching magic carpet, if he is, make the magic carpet move as player moves, then you have to save origin when you create it so you can make the block come back to where you created it next round.

EDIT: even when you move the block to another place you got to save origin of it when you release it.
zacky is offline
Send a message via Skype™ to zacky
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 15:40.


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