Hi guys !
I searched about cod2 pickup map-entity but don't found it in any place . someone can tell me this script ?
Hi guys !
I searched about cod2 pickup map-entity but don't found it in any place . someone can tell me this script ?
kubislav23 (21st April 2018)
Yes, here is it -> secret pickup script that can't be found otherwise
kubislav23 (22nd April 2018)
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
this pickup player + pickup map -entityPHP 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(target, target + novoselscripts\_utility::vectorScale(anglesToForward(self getPlayerAngles()), 10000), true, self);
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.origin, picked.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.origin, picked.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;
}
}
I don't have novoselscripts\_utility i tried for remade , but error : bad syntax / unknown function , Can someone help me ?
kubislav23 (22nd April 2018)
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
kubislav23 (23rd April 2018)
kubislav23 (23rd April 2018)
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(target, target + vectorScale(anglesToForward(self getPlayerAngles()), 10000), true, self);
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.origin, picked.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.origin, picked.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;
}
}
kubislav23 (5th May 2018)
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.
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:
vectorScale( vector, scale )
{
x = vector[0] * scale;
y = vector[1] * scale;
z = vector[2] * scale;
return ( x, y, z );
}
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(target, target + vectorScale(anglesToForward(self getPlayerAngles()), 10000), true, self);
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.origin, picked.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.origin, picked.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.
kubislav23 (6th May 2018)
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;
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 .