Page 3 of 3 FirstFirst 123
Results 21 to 22 of 22

Thread: Triple Mortar

  1. #21
    Private
    Join Date
    Nov 2012
    Location
    Denmark, where else
    Posts
    27
    Thanks
    5
    Thanked 13 Times in 6 Posts
    Quote Originally Posted by YuriJurek View Post
    You can easily tell where the code is from, just join `nL.Zombies* server, and by the way, do any of you think someone who asks such a basic questions like Here and here, could possibly make a script such as the one in this thread...



    Code:
    //////////////////////////////
    ///   Scripted By BlancO   ///
    ///     xFire: 7blanco7    ///
    ///   Edited: 13.06.2011   ///
    //////////////////////////////
    From the original script.
    Your right and i agree with you, doesnt seem like this guy made the script, but who am i to say.

    This proofs nothing.
    Dont drink and drive, smoke and fucking fly

  2. #22
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    Well, as we all seemingly agree that it is quite far-fetched OP made these scripts, lets discuss them

    Code:
    GetTargetedPos()
    {
             startOrigin = self getEye();
             forward = anglesToForward(self getplayerangles());
              forward= maps\mp\_utility::vectorScale(forward, 100000);
             endOrigin = startOrigin + forward;    
             trace = bulletTrace(startOrigin, endOrigin, false, self);
             if(trace["fraction"] == 1.0 || trace["surfacetype"] == "default")
                    endOrigin = trace["position"];
             else if(trace["fraction"] < 1)
                    endOrigin = trace["position"];
    
             //iprintln(endOrigin);
         return endOrigin;
    }
    What is that last if doing there? Really?

    Code:
    PlaySoundAtLocation(sound, location, iTime)
    {
        org = spawn("script_model", location);
        wait 0.05;
        org show();
        org playSound(sound);
        wait iTime;
        org delete();
    
        return;
    }
    No need to
    1) spawn a script_model, a script_origin suffices
    2) wait before playing a sound
    3) show for playing a sound
    4) wait before deleting.

    Code:
    			meleepoint=spawn("script_origin",trace["position"]);
    			meleepoint playsound(level.meleesound);
    			meleepoint delete();
    Works fine in the cod4mod.

    The rest of the script feels awefully coded (can easily be wrapped into a loop) and contains unnecessary waits.

    Very linear, obviously copy-pasted scripting.
    Last edited by IzNoGoD; 29th August 2013 at 18:43.

Posting Permissions

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