Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Cod2 Pickup map- entity

  1. #1
    Private Salem75's Avatar
    Join Date
    Mar 2018
    Location
    Toujane , Tunisia
    Posts
    15
    Thanks
    0
    Thanked 9 Times in 8 Posts

    Cod2 Pickup map- entity

    Hi guys !

    I searched about cod2 pickup map-entity but don't found it in any place . someone can tell me this script ?

  2. The Following User Says Thank You to Salem75 For This Useful Post:

    kubislav23 (21st April 2018)

  3. #2
    Sergeant serthy's Avatar
    Join Date
    Nov 2012
    Posts
    450
    Thanks
    96
    Thanked 296 Times in 188 Posts

  4. The Following User Says Thank You to serthy For This Useful Post:

    kubislav23 (22nd April 2018)

  5. #3
    Private Salem75's Avatar
    Join Date
    Mar 2018
    Location
    Toujane , Tunisia
    Posts
    15
    Thanks
    0
    Thanked 9 Times in 8 Posts
    lol , I don't want pickup player , i want pickup map - entity . There are friend gave me this script , but i need to remade it to make it work

    PHP Code:
    init()
    {
        
    self endon("disconnect");

        
    self notify("newpka");
        
    self endon("newpka");

        
    picked undefined;
        
    dist 0;

        while (
    isDefined(self))
        {
            if (
    isDefined(self.pufa) || isDefined(self.pent))
            {
                if (
    self useButtonPressed() && (isAlive(self) || self.pers["team"] == "spectator"))
                {
                    if (!
    isDefined(self.pickpoint))
                        
    self.pickpoint spawn("script_origin"self.origin);

                    if (!
    isDefined(picked))
                    {
                        if (
    self.pers["team"] == "spectator")
                            
    target self.origin;
                        else
                            
    target self novoselscripts\_utility::getRealEye();
                        
    trace bulletTrace(targettarget novoselscripts\_utility::vectorScale(anglesToForward(self getPlayerAngles()), 10000), trueself);
                        if (
    isDefined(trace["entity"]))
                        {
                            if (
    isPlayer(trace["entity"]) && isDefined(self.pufa))
                            {
                                
    picked trace["entity"];
                                if (
    novoselscripts\_utility::isJumpServer())
                                    
    picked iprintlnBold("^1Picked up by an Admin");
                                else
                                    
    picked novoselscripts\_utility::spectatorIprintlnBold("pickedby");
                                if (
    novoselscripts\_utility::isJumpServer())
                                    
    self iprintln("^1You picked ^7"picked.name);
                                else
                                    
    self novoselscripts\_utility::spectatorIprintln("pickedup"picked.name);
                                
    self.pickpoint.origin picked.origin;
                                
    picked unlink();
                                if (
    isDefined(picked.lettool))
                                    
    picked.lettool delete();
                                
    picked notify("picked_up");
                                
    picked linkto(self.pickpoint);
                                
    dist distance(self.originpicked.origin);
                            }
                            else if (!
    isPlayer(trace["entity"]) && isDefined(self.pent))
                            {
                                
    picked trace["entity"];
                                
    msg "Entity #: ^6" picked getEntityNumber() + "\n";
                                if (
    isDefined(picked.classname))
                                    
    msg += "^7classname: ^2" picked.classname "\n";
                                if (
    isDefined(picked.targetname))
                                    
    msg += "^7targetname: ^3" picked.targetname;
                                if (
    novoselscripts\_utility::isJumpServer())
                                    
    self iprintln("^1You picked ^7"msg);
                                else
                                    
    self novoselscripts\_utility::spectatorIprintln("pickedup"msg"ignorelocalized");
                                
    self.pickpoint.origin picked.origin;
                                
    picked linkto(self.pickpoint);
                                
    dist distance(self.originpicked.origin);
                            }
                        }
                    }
                    else
                    {
                        if (
    isPlayer(picked) && !isAlive(picked) && isDefined(self.pufa))
                        {
                            
    picked unlink();
                            if (
    novoselscripts\_utility::isJumpServer())
                                
    picked iprintlnBold("^2Dropped by an Admin");
                            else
                                
    picked novoselscripts\_utility::spectatorIprintlnBold("dropped");
                            if (
    novoselscripts\_utility::isJumpServer())
                                
    self iprintln("^2You dropped ^7"picked.name);
                            else
                                
    self novoselscripts\_utility::spectatorIprintln("droppedby"picked.name);
                            
    picked undefined;

                            if (
    isDefined(self.pickpoint))
                                
    self.pickpoint delete();
                        }
                        else
                        {
                            if (
    self.pers["team"] == "spectator")
                                
    self.pickpoint.origin self.origin novoselscripts\_utility::vectorScale(anglesToForward(self getPlayerAngles()), dist);
                            else
                                
    self.pickpoint.origin self novoselscripts\_utility::getRealEye() + novoselscripts\_utility::vectorScale(anglesToForward(self getPlayerAngles()), dist);

                            if (
    self meleebuttonpressed())
                                
    dist += 15;

                            else if (
    self attackbuttonpressed())
                            {
                                if (
    dist 50)
                                    
    dist -= 15;
                            }
                        }
                    }
                }
                else
                {
                    if (
    isDefined(picked))
                    {
                        if (
    isPlayer(picked) && isDefined(self.pufa))
                        {
                            
    picked unlink();
                            if (
    novoselscripts\_utility::isJumpServer())
                                
    picked iprintlnBold("^2Dropped by an Admin");
                            else
                                
    picked novoselscripts\_utility::spectatorIprintlnBold("dropped");
                            if (
    novoselscripts\_utility::isJumpServer())
                                
    self iprintln("^2You dropped ^7"picked.name);
                            else
                                
    self novoselscripts\_utility::spectatorIprintln("droppedby"picked.name);
                            
    picked undefined;
                        }
                        else if (!
    isPlayer(picked) && isDefined(self.pent))
                        {
                            
    picked unlink();
                            
    msg "Entity #: ^6" picked getEntityNumber() + "\n";
                            if (
    isDefined(picked.classname))
                                
    msg += "^7classname: ^2" picked.classname "\n";
                            if (
    isDefined(picked.targetname))
                                
    msg += "^7targetname: ^3" picked.targetname;
                            if (
    novoselscripts\_utility::isJumpServer())
                                
    self iprintln("^2You dropped ^7"msg);
                            else
                                
    self novoselscripts\_utility::spectatorIprintln("droppedby"msg"ignorelocalized");
                            
    picked undefined;
                        }
                    }

                    if (
    isDefined(self.pickpoint))
                        
    self.pickpoint delete();
                }
            }
            else
                return;
            
    wait 0.05;
        }

    this pickup player + pickup map -entity
    I don't have novoselscripts\_utility i tried for remade , but error : bad syntax / unknown function , Can someone help me ?

  6. The Following User Says Thank You to Salem75 For This Useful Post:

    kubislav23 (22nd April 2018)

  7. #4
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,013
    Thanks
    2,109
    Thanked 1,086 Times in 753 Posts
    If by map entity you mean script_brushmodels you can use my code made for basemod: https://github.com/kungfooman/cod2_b...tcher.gsc#L238
    timescale 0.01

  8. The Following User Says Thank You to kung foo man For This Useful Post:

    kubislav23 (23rd April 2018)

  9. #5
    Brigadier General
    Join Date
    Oct 2012
    Posts
    995
    Thanks
    20
    Thanked 588 Times in 388 Posts
    Quote Originally Posted by serthy View Post
    LOL, LOL, LOL

    Thank you for that, brother. It made me laugh at a time when I really needed it.

  10. The Following User Says Thank You to Tally For This Useful Post:

    kubislav23 (23rd April 2018)

  11. #6
    Private Salem75's Avatar
    Join Date
    Mar 2018
    Location
    Toujane , Tunisia
    Posts
    15
    Thanks
    0
    Thanked 9 Times in 8 Posts
    heh , I don't want this i want to update this script only
    I tried to remade it alone , No error but don't work , And tried again but bad syntax then i stopped there , Someone can help ? :
    PHP Code:
    init()
    {
        
    self endon("disconnect");
     
        
    self notify("newpka");
        
    self endon("newpka");
     
        
    picked undefined;
        
    dist 0;
     
        while (
    isDefined(self))
        {
                if (
    self useButtonPressed() && (isAlive(self) || self.pers["team"] == "spectator"))
                {
                    if (!
    isDefined(self.pickpoint))
                        
    self.pickpoint spawn("script_origin"self.origin);
     
                    if (!
    isDefined(picked))
                    {
                        
    target self.origin;
                        
    trace bulletTrace(targettarget vectorScale(anglesToForward(self getPlayerAngles()), 10000), trueself);
     
                        if (
    isDefined(trace["entity"]))
                        {
                            if (
    isPlayer(trace["entity"]) && isDefined(self.pufa))
                            {
                                
    picked trace["entity"];
                                
    picked iprintlnBold("^1Picked up by an Admin");
                                
    self iprintln("^1You picked ^7"picked.name);
                                
    self.pickpoint.origin picked.origin;
     
                                
    picked unlink();
     
                                if (
    isDefined(picked.lettool))
                                    
    picked.lettool delete();
     
                                
    picked notify("picked_up");
                                
    picked linkto(self.pickpoint);
                                
    dist distance(self.originpicked.origin);
                            }
                            else if (!
    isPlayer(trace["entity"]) && isDefined(self.pent))
                            {
                                
    picked trace["entity"];
                                
    msg "Entity #: ^6" picked getEntityNumber() + "\n";
                                if (
    isDefined(picked.classname))
                                    
    msg += "^7classname: ^2" picked.classname "\n";
                                if (
    isDefined(picked.targetname))
                                    
    msg += "^7targetname: ^3" picked.targetname;
     
                                
    self iprintln("^1You picked ^7"msg);
     
                                
    self.pickpoint.origin picked.origin;
                                
    picked linkto(self.pickpoint);
                                
    dist distance(self.originpicked.origin);
                            }
                        }
                    }
                    else
                    {
                        if (
    isPlayer(picked) && !isAlive(picked) && isDefined(self.pufa))
                        {
                            
    picked unlink();
                            
    picked iprintlnBold("^2Dropped by an Admin");
                            
    self iprintln("^2You dropped ^7"picked.name);
                            
    picked undefined;
     
                            if (
    isDefined(self.pickpoint))
                                
    self.pickpoint delete();
                        }
                        else
                        {
                            if (
    self.pers["team"] == "spectator")
                                
    self.pickpoint.origin self.origin vectorScale(anglesToForward(self getPlayerAngles()), dist);
     
                            if (
    self meleebuttonpressed())
                                
    dist += 15;
     
                            else if (
    self attackbuttonpressed())
                            {
                                if (
    dist 50)
                                    
    dist -= 15;
                            }
                        }
                    }
                }
                else
                {
                    if (
    isDefined(picked))
                    {
                        if (
    isPlayer(picked) && isDefined(self.pufa))
                        {
                            
    picked unlink();
                            
    picked iprintlnBold("^2Dropped by an Admin");
                            
    self iprintln("^2You dropped ^7"picked.name);
                            
    picked undefined;
                        }
                        else if (!
    isPlayer(picked) && isDefined(self.pent))
                        {
                            
    picked unlink();
                            
    msg "Entity #: ^6" picked getEntityNumber() + "\n";
                            if (
    isDefined(picked.classname))
                                
    msg += "^7classname: ^2" picked.classname "\n";
                            if (
    isDefined(picked.targetname))
                                
    msg += "^7targetname: ^3" picked.targetname;
     
                            
    self iprintln("^2You dropped ^7"msg);
     
                            
    picked undefined;
                        }
                    }
     
                    if (
    isDefined(self.pickpoint))
                        
    self.pickpoint delete();
                }
            }
            else
                return;
            
    wait 0.05;
        }


  12. The Following User Says Thank You to Salem75 For This Useful Post:

    kubislav23 (5th May 2018)

  13. #7
    Private
    Join Date
    Jun 2013
    Posts
    71
    Thanks
    20
    Thanked 32 Times in 26 Posts
    looking at the other code above i think a bracket is wrong placed

    line 115
    }
    else
    return;

    u removed

    if (isDefined(self.pufa) || isDefined(self.pent))
    {

    so u have to remove the other too
    Last edited by vanfreddy; 5th May 2018 at 19:55.

  14. #8
    Private Salem75's Avatar
    Join Date
    Mar 2018
    Location
    Toujane , Tunisia
    Posts
    15
    Thanks
    0
    Thanked 9 Times in 8 Posts
    Ye I tried with
    if (isDefined(self.pufa) || isDefined(self.pent))
    {
    No error but don't work .
    -> No error but don't work :
    PHP Code:
    vectorScalevectorscale )
    {
        
    vector[0] * scale;
        
    vector[1] * scale;
        
    vector[2] * scale;
     
        return ( 
    xy);
    }
     
    init()
    {
        
    self endon("disconnect");
     
        
    self notify("newpka");
        
    self endon("newpka");
     
        
    picked undefined;
        
    dist 0;
     
        while (
    isDefined(self))
        {
            if (
    isDefined(self.pufa) || isDefined(self.pent))
            {
                if (
    self useButtonPressed() && (isAlive(self) || self.pers["team"] == "spectator"))
                {
                    if (!
    isDefined(self.pickpoint))
                        
    self.pickpoint spawn("script_origin"self.origin);
     
                    if (!
    isDefined(picked))
                    {
                        
    target self.origin;
                        
    trace bulletTrace(targettarget vectorScale(anglesToForward(self getPlayerAngles()), 10000), trueself);
     
                        if (
    isDefined(trace["entity"]))
                        {
                            if (
    isPlayer(trace["entity"]) && isDefined(self.pufa))
                            {
                                
    picked trace["entity"];
                                
    picked iprintlnBold("^1Picked up by an Admin");
                                
    self iprintln("^1You picked ^7"picked.name);
                                
    self.pickpoint.origin picked.origin;
     
                                
    picked unlink();
     
                                if (
    isDefined(picked.lettool))
                                    
    picked.lettool delete();
     
                                
    picked notify("picked_up");
                                
    picked linkto(self.pickpoint);
                                
    dist distance(self.originpicked.origin);
                            }
                            else if (!
    isPlayer(trace["entity"]) && isDefined(self.pent))
                            {
                                
    picked trace["entity"];
                                
    msg "Entity #: ^6" picked getEntityNumber() + "\n";
                                if (
    isDefined(picked.classname))
                                    
    msg += "^7classname: ^2" picked.classname "\n";
                                if (
    isDefined(picked.targetname))
                                    
    msg += "^7targetname: ^3" picked.targetname;
     
                                
    self iprintln("^1You picked ^7"msg);
     
                                
    self.pickpoint.origin picked.origin;
                                
    picked linkto(self.pickpoint);
                                
    dist distance(self.originpicked.origin);
                            }
                        }
                    }
                    else
                    {
                        if (
    isPlayer(picked) && !isAlive(picked) && isDefined(self.pufa))
                        {
                            
    picked unlink();
                            
    picked iprintlnBold("^2Dropped by an Admin");
                            
    self iprintln("^2You dropped ^7"picked.name);
                            
    picked undefined;
     
                            if (
    isDefined(self.pickpoint))
                                
    self.pickpoint delete();
                        }
                        else
                        {
                            if (
    self.pers["team"] == "spectator")
                                
    self.pickpoint.origin self.origin vectorScale(anglesToForward(self getPlayerAngles()), dist);
     
                            if (
    self meleebuttonpressed())
                                
    dist += 15;
     
                            else if (
    self attackbuttonpressed())
                            {
                                if (
    dist 50)
                                    
    dist -= 15;
                            }
                        }
                    }
                }
                else
                {
                    if (
    isDefined(picked))
                    {
                        if (
    isPlayer(picked) && isDefined(self.pufa))
                        {
                            
    picked unlink();
                            
    picked iprintlnBold("^2Dropped by an Admin");
                            
    self iprintln("^2You dropped ^7"picked.name);
                            
    picked undefined;
                        }
                        else if (!
    isPlayer(picked) && isDefined(self.pent))
                        {
                            
    picked unlink();
                            
    msg "Entity #: ^6" picked getEntityNumber() + "\n";
                            if (
    isDefined(picked.classname))
                                
    msg += "^7classname: ^2" picked.classname "\n";
                            if (
    isDefined(picked.targetname))
                                
    msg += "^7targetname: ^3" picked.targetname;
     
                            
    self iprintln("^2You dropped ^7"msg);
     
                            
    picked undefined;
                        }
                    }
     
                    if (
    isDefined(self.pickpoint))
                        
    self.pickpoint delete();
                }
            }
            else
                return;
            
    wait 0.05;
        }

    Last edited by Salem75; 6th May 2018 at 10:14.

  15. The Following User Says Thank You to Salem75 For This Useful Post:

    kubislav23 (6th May 2018)

  16. #9
    Private
    Join Date
    Jun 2013
    Posts
    71
    Thanks
    20
    Thanked 32 Times in 26 Posts
    im not sure but i think u have to define what u wanna pickup
    init()
    {
    self endon("disconnect");

    self notify("newpka");
    self endon("newpka");

    self.pent = 1; //or "self.pent = undefined" for off ( entity)
    self.pufa = 1; //or "self.pufa = undefined "for off (player)

    picked = undefined;
    dist = 0;

  17. #10
    Private Salem75's Avatar
    Join Date
    Mar 2018
    Location
    Toujane , Tunisia
    Posts
    15
    Thanks
    0
    Thanked 9 Times in 8 Posts
    1/I want to pick brush_model entity on map , not on default maps .
    2/Nope , It's don't work :
    ******* script compile error *******
    unknown function: @ 19094
    ************************************
    ********************
    ERROR: script compile error
    (see console for details)
    ********************

    Try test on your local server or anything else , early send .

Posting Permissions

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