Raised This Month: $12 Target: $400
 3% 

[TF2] Jetpack Plugin (with realistic effect)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Death Commando
Junior Member
Join Date: Jan 2013
Plugin ID:
3488
Plugin Version:
Plugin Category:
Server Management
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Old 01-26-2013 , 14:16   [TF2] Jetpack Plugin (with realistic effect)
    Reply With Quote #1

    Look at this thread for a better plugin.

    https://forums.alliedmods.net/showth...=56374&page=18
    Attached Files
    File Type: zip New Jetpack Plugin.zip (3.59 MB, 1734 views)

    Last edited by Death Commando; 03-30-2013 at 12:45.
    Death Commando is offline
    Roundcat
    Senior Member
    Join Date: Feb 2012
    Old 01-27-2013 , 02:24   Re: [TF2] Jetpack Plugin (with realistic effect)
    Reply With Quote #2

    Is this model client side? Ie not viewable to players who havent down loaded it themselves...
    __________________
    I know not my ar*e from its elbow.
    Roundcat is offline
    RavensBro
    Veteran Member
    Join Date: Sep 2009
    Location: Wisonsin USA
    Old 01-27-2013 , 03:34   Re: [TF2] Jetpack Plugin (with realistic effect)
    Reply With Quote #3

    nice so does this have a fule gage now or what>? players really love my jetpack but they want some kind of fule gage so it cant stay in the air for ever i use it on my ff2 server. will be testing out.
    RavensBro is offline
    Death Commando
    Junior Member
    Join Date: Jan 2013
    Old 01-27-2013 , 17:12   Re: [TF2] Jetpack Plugin (with realistic effect)
    Reply With Quote #4

    it just has flames shooting out the back of the player.

    The only problem is, when someone uses it, the flames shoot out the back of every player, not just you. I have been unable to fix the problem, so if anyone knows how to make effects work only on the user, i would appreciate the help.
    Death Commando is offline
    MasterOfTheXP
    Veteran Member
    Join Date: Aug 2011
    Location: Cloudbank
    Old 01-27-2013 , 17:59   Re: [TF2] Jetpack Plugin (with realistic effect)
    Reply With Quote #5

    Quote:
    Originally Posted by Death Commando View Post
    The only problem is, when someone uses it, the flames shoot out the back of every player, not just you. I have been unable to fix the problem, so if anyone knows how to make effects work only on the user, i would appreciate the help.
    PHP Code:
    for(new 1<= g_iMaxClientsi++)
            {
                if(
    g_bJetpacks[i])
                {
                    if(!
    IsAlive(i)) StopJetpack(i);
                    else 
    AddVelocity(iGetConVarFloat(sm_jetpack_speed));
                    
                    for (new 
    iClient 1iClient <= MaxClientsiClient++)
                    {
                          
    // Attach particle 
    That looks like the issue to me. You're attaching the particle to all players for each player that is jetpacking.

    Also...what's with the g_iMaxClients thing? It's not needed, at all (especially due to the fact that GetMaxClients is to be deprecated eventually) just use MaxClients like your for-loop-within-a-for-loop uses.
    __________________
    Plugins / My Steam / TF2 Sandbox (plugin beta testing!)
    MasterOfTheXP is offline
    Death Commando
    Junior Member
    Join Date: Jan 2013
    Old 01-28-2013 , 11:09   Re: [TF2] Jetpack Plugin (with realistic effect)
    Reply With Quote #6

    so i should use the code you put in instead of mine?
    Death Commando is offline
    BBG_Theory
    Veteran Member
    Join Date: Oct 2010
    Location: NC USA
    Old 01-28-2013 , 13:35   Re: [TF2] Jetpack Plugin (with realistic effect)
    Reply With Quote #7

    he was just showing where he thought the issue was.. he did not post corrective coding.

    Would be great if this could be perfected

    Can the pyro jetpacks model be attached to all players or is this only for pyros?
    I would def. like to use this once it is working correctly

    Also, what goes in the redirects (the .bz2) should be cleaned up and not mixed in the model subdirectories and thus uploaded to the gameserver

    also, can we use the spacebar to trigger the jetpack usage once someone has typed !jetpack or /jetpack in chat as a design feature. from heading the 3 steps of how to use, it did not read like this was how this was activated (bit confusing how one would use the jetpack once they enabled it

    Last edited by BBG_Theory; 01-28-2013 at 13:43.
    BBG_Theory is offline
    Death Commando
    Junior Member
    Join Date: Jan 2013
    Old 01-28-2013 , 19:39   Re: [TF2] Jetpack Plugin (with realistic effect)
    Reply With Quote #8

    i am totally new to this. could someone post the corrections to the code. thanks
    Death Commando is offline
    BBG_Theory
    Veteran Member
    Join Date: Oct 2010
    Location: NC USA
    Old 02-04-2013 , 15:29   Re: [TF2] Jetpack Plugin (with realistic effect)
    Reply With Quote #9

    any progress?? maybe try working with someone else that has fooled with other jetpacks? or hopefully masteroftheXP help ??
    BBG_Theory is offline
    frickentrevor
    Junior Member
    Join Date: Sep 2011
    Location: OnPluginStart()
    Old 02-21-2013 , 18:18   Re: [TF2] Jetpack Plugin (with realistic effect)
    Reply With Quote #10

    Quote:
    Originally Posted by Death Commando View Post
    i am totally new to this. could someone post the corrections to the code. thanks
    this is starting to sound like we are making the plugin for you. if you cannot figure everything out, read up the SourceMod Wiki

    edit: I would expect this plugin to get disapproved, or just fade away
    __________________
    Quote:
    Originally Posted by stupok View Post
    Why was your keyboard in the bath?

    Last edited by frickentrevor; 02-21-2013 at 18:21.
    frickentrevor is offline
    Reply


    Thread Tools
    Display Modes

    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 04:49.


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