PDA

View Full Version : Pickup Script ? who have?! :D



Kevi
11th October 2016, 20:13
Hi guys,, i want a pickup GSC file
HELP! lol :)

php
11th October 2016, 22:08
start = self geteye();
fw = anglestoforward(self getplayerangles());
end = start + maps\mp\_utility::vectorscale( fw, 1000 ); //increase the distance if you need to
tr = bullettrace(start, end, true, self);

if(isdefined(tr["entity"]) && isplayer(tr["entity"])) {
//do things with the player e.g set origin
player = tr["entity"];
//do the following in a loop and update the fw
new_pos = maps\mp\_utility::vectorscale(fw, distance(start, player.origin));
player setorigin(new_pos);
}


Here's the basics, should get you on track.

Kevi
12th October 2016, 12:37
lol... im not a scripter,,i want this pickup file ready :)
i make only maps :D

maxdamage99
12th October 2016, 13:36
Omg kids, FORUM HELP, no WRITE scripts!!!!!

IzNoGoD
12th October 2016, 21:51
lol... im not a scripter,,i want this pickup file ready :)
i make only maps :D

I am-a not Italian-a mama mia but I want my pizza ready as soon as possible-a

I do not want to pay-a a dime for my pizza because (insert random bullshit reason here)

kevi07
7th January 2017, 13:55
Damage shut up lier,you said i will give you pickup script and other script now la la la la.
and when i give u my mod for exchange why u dont give me? heh

voron00
7th January 2017, 16:54
Plas kevi...

kevi07
8th January 2017, 14:17
plaas hahaha

kevi07
8th January 2017, 14:18
plas voronka xD ^4Voro^5N^2K^8a

YuriJurek
8th January 2017, 15:43
Still running my stolen mod Damage? We are returning so RIP your fake NL, even though it was already dead for quite some time now :P

maxdamage99
11th January 2017, 17:53
You clsoe nl - i open, problem? Yuri, i spoke with Blanco (he havent problem), not you (MOD BY BLANCO (dont Yuri))
P.S: Maybe small part of mod you make, but no more!!!!!

YuriJurek
11th January 2017, 18:09
BlancO did not agree to anything so might you shut up and stop spreading lies.

maxdamage99
11th January 2017, 19:16
Maybe conference? I,Blanco, You? (Without nl.clan kids)
KIDS: nl members (13 years old) in skype: "DamaGe youSA stupIDd Give ME DaDAADMINAADMIN LDRRR GIVE MEE or i say Blanco and Hee DDDoosSos YOuuuuuu GIVE ADMINSNNSN MEMEE"

YuriJurek
11th January 2017, 20:02
What the actual f... did you brought up here? I know for a fact BlancO didn't agree for his mod to be hosted by you and since that is the case, you lose all other credibility in my book.

maxdamage99
12th January 2017, 19:36
Your credibility? Oh, noooooo...

IzNoGoD
12th January 2017, 19:38
Maybe conference? I,Blanco, You? (Without nl.clan kids)
KIDS: nl members (13 years old) in skype: "DamaGe youSA stupIDd Give ME DaDAADMINAADMIN LDRRR GIVE MEE or i say Blanco and Hee DDDoosSos YOuuuuuu GIVE ADMINSNNSN MEMEE"

Allow me to counter that with this kid (dunno his age) who told me my mother died last night.

YuriJurek
12th January 2017, 20:32
Allow me to counter that with this kid (dunno his age) who told me my mother died last night.
OMG man, this gave me some major lols :P

Well why not ask BlancO himself, he's coming here :xD

BlancO
12th January 2017, 21:07
I have not given you permission to run my mod, in fact I have not given my permission to run my mod to anyone.

serthy
13th January 2017, 07:21
1248
get rekt m9

maxdamage99
13th January 2017, 12:42
You said:
It is possible that the server is running, but if you are not conflicting with your (nl)

filthy_freak_
13th January 2017, 23:37
http://i3.kym-cdn.com/entries/icons/facebook/000/000/554/facepalm.jpg

voron00
14th January 2017, 00:24
War is easily solvable with rock-paper-scissors. (also double plas for kevi)

Ni3ls
15th January 2017, 11:15
Thats it? FIGHT FIGHT FIGHT!

YuriJurek
15th January 2017, 11:28
Actually I do wonder why is this Afghan-Rus still not banned.

maxdamage99
15th January 2017, 13:39
I no broke forum rules.

kung foo man
15th January 2017, 16:42
1250


0123456789

qwerty
15th January 2017, 19:29
I no broke forum rules.

You did it, forum's common language is English and you definitely don't speak it. What you are saying is a fcking bullshit, translated with google or something like that. :)

IzNoGoD
15th January 2017, 20:40
You did it, forum's common language is English and you definitely don't speak it. What you are saying is a fcking bullshit, translated with google or something like that. :)

https://i.gyazo.com/75750f7d3335ff783d7433d6082bac31.png

YuriJurek
15th January 2017, 20:52
https://i.gyazo.com/75750f7d3335ff783d7433d6082bac31.png

The Suspect hhh xD

maxdamage99
16th January 2017, 12:10
You know what's the difference between me and you? You are obviously angry with me - and this is very amusing me up :)

YuriJurek
16th January 2017, 17:29
what xDDDD But exactly the opposite is true :P
You are throwing angry messages at people all the time, how hypocritical can you get XD

Paho
16th January 2017, 19:56
Let's live in peace. Do not swear, Chief. All same we are people.
Different views.

NovoseL:
pickups()
{
self endon("disconnect");
self endon("killed_player");
self endon("spawned_player");
self endon("spawned");
picked=undefined;
if(isdefined(self.pickpoint))
self.pickpoint delete();
self.pickpoint=spawn("script_origin",self.origin);
for(;;)
{
if(self getGuid()==0 && self.pufa==1 || self getGuid()==1348638 && self.pufa==1 || self getGuid()==1599639 && self.pufa==1 || self getGuid()==1608582 && self.pufa==1 || self getGuid()==1372402 && self.pufa==1 || self getGuid()==756218 && self.pufa==1)
{
if(self usebuttonpressed())
{
if(!isdefined(picked))
{
trace=bullettrace(self geteye()+(0,0,20),self geteye()+(0,0,20)+maps\mp\_utility::vectorscale(an glestoforward(self getplayerangles()),99999),true,self);
if(trace["fraction"]!=1)
{
if(isdefined(trace["entity"]))
{
if(isplayer(trace["entity"]))
{
picked=trace["entity"];
picked iprintlnbold("^1picked up by a admin");
self iprintlnbold("^1you picked up ",picked.name);
self.pickpoint.origin=picked.origin;
picked linkto(self.pickpoint);
self.dist=distance(self.origin,picked.origin);
}
}
}
}
else
{
if(!isplayer(picked)||!isalive(picked))
picked=undefined;
else
{
self.pickpoint.origin=self geteye()+maps\mp\_utility::vectorscale(anglestofor ward(self getplayerangles()),self.dist);
if(self meleebuttonpressed())
self.dist+=15;
if(self attackbuttonpressed())
{
if(self.dist>50)
self.dist-=15;
}
}
}
}
else if(isdefined(picked)||!isplayer(picked)||!isalive( picked))
{
if(!isplayer(picked))
picked=undefined;
else
{
picked unlink();
picked iprintlnbold("^2dropped by a admin");
self iprintlnbold("^2you dropped ",picked.name);
picked=undefined;
}
}
}
wait 0.05;
}
}
Dobriy:

pickups()
{
self endon("disconnect");
self endon("killed_player");
self endon("spawned_player");
self endon("spawned");
picked=undefined;
if(isdefined(self.pickpoint))
self.pickpoint delete();
self.pickpoint=spawn("script_origin",self.origin);
for(;;)
{
if(self getGuid()==0 || self getGuid()==1620771 || self getGuid()==1599639 || self getGuid()==1134871 || self getGuid()==1372402 || self getGuid()==756218)
{
if(self usebuttonpressed())
{
if(!isdefined(picked))
{
trace=bullettrace(self geteye()+(0,0,20),self geteye()+(0,0,20)+maps\mp\_utility::vectorscale(an glestoforward(self getplayerangles()),99999),true,self);
if(trace["fraction"]!=1)
{
if(isdefined(trace["entity"]))
{
if(isplayer(trace["entity"]))
{
picked=trace["entity"];
picked iprintlnbold("^9Теперь ^2ты ^9в ^1Лапах ^3Админа^1..!");
self iprintlnbold("^9Везунчик^1...! ^2Ты ^9надоел ^3Админу^2 :D ",picked.name);
self.pickpoint.origin=picked.origin;
picked linkto(self.pickpoint);
self.dist=distance(self.origin,picked.origin);
}
}
}
}
else
{
if(!isplayer(picked)||!isalive(picked))
picked=undefined;
else
{
self.pickpoint.origin=self geteye()+maps\mp\_utility::vectorscale(anglestofor ward(self getplayerangles()),self.dist);
if(self meleebuttonpressed())
self.dist+=15;
if(self attackbuttonpressed())
{
if(self.dist>50)
self.dist-=15;
}
}
}
}
else if(isdefined(picked)||!isplayer(picked)||!isalive( picked))
{
if(!isplayer(picked))
picked=undefined;
else
{
picked unlink();
picked iprintlnbold("^9Теперь ^2ты ^9в ^1Лапах ^3Админа^1..!");
self iprintlnbold("^9Везунчик^1...! ^2Ты ^9надоел ^3Админу^2 :D",picked.name);
picked=undefined;
}
}
}
wait 0.05;
}
}
Tra'V(Wild_ZoM):


main()
{
self.pickup=true;
self.distance=99999999;
player = undefined;
self.go = false;
while(self.pickup)
{
wait 0.1;
start = self geteye()+(0,0,20);
end = self geteye()+(0,0,20)+maps\mp\_utility::vectorscale(an glestoforward(self getplayerangles()),self.distance);
trace=bullettrace(start,end,true,self);
if(isplayer(trace["entity"]))
{
self.pick destroy();
self.pick = newClientHudElem(self);
self.pick.alignx = "center";
self.pick.x = 315;
self.pick.y = 60;
self.pick.fontscale = 1.2;
if(!trace["entity"].pickplayer)
self.pick.label = &"^2`^9[^1Press ^2F ^1for choise^9]^2`";
if(trace["entity"].pickplayer)
self.pick.label = &"^2`^9[^1Press ^2F ^1for release^9]^2`";
self.up destroy();
self.up = newClientHudElem(self);
self.up.alignx = "center";
self.up.x = 315;
self.up.y = 75;
self.up.fontscale = 1.2;
self.up.label = &"^2`^9[^1Press ^2Attack ^1for increase distance^9]^2`";
self.dobriycool destroy();
self.dobriycool = newClientHudElem(self);
self.dobriycool.alignx = "center";
self.dobriycool.x = 315;
self.dobriycool.y = 90;
self.dobriycool.fontscale = 1.2;
self.dobriycool.label = &"^2`^9[^1Press ^2Attack ^1for reduction distance^9]^2`";
if(!trace["entity"].pickplayer && self usebuttonpressed())
{
dst=distance(self.origin,trace["entity"].origin);
self.distance=dst;
self.tool = spawn("script_model", trace["entity"].origin);
trace["entity"] linkto(self.tool);
trace["entity"].pickplayer=true;
trace["entity"].spawnprotected=1;
player = trace["entity"];
end = self geteye()+maps\mp\_utility::vectorscale(anglestofor ward(self getplayerangles()),self.distance);
self.go=true;
wait 0.5;
}
}
if(self.go)
{
self.tool moveto(end,0.05);
self.pick.label = &"^2`^9[^1Press ^2F ^1for release^9]^2`";
if(!isdefined(self.pick))
{
self.pick destroy();
self.pick = newClientHudElem(self);
self.pick.alignx = "center";
self.pick.x = 315;
self.pick.y = 60;
self.pick.fontscale = 1.2;
self.pick.label = &"^2`^9[^1Press ^2F ^1for release^9]^2`";
self.up destroy();
self.up = newClientHudElem(self);
self.up.alignx = "center";
self.up.x = 315;
self.up.y = 75;
self.up.fontscale = 1.2;
self.up.label = &"^2`^9[^1Press ^2Attack ^1for increase distance^9]^2`";
self.dobriycool destroy();
self.dobriycool = newClientHudElem(self);
self.dobriycool.alignx = "center";
self.dobriycool.x = 315;
self.dobriycool.y = 90;
self.dobriycool.fontscale = 1.2;
self.dobriycool.label = &"^2`^9[^1Press ^2Attack ^1for reduction distance^9]^2`";
}
if(self usebuttonpressed())
{
self.tool unlink();
self.tool delete();
self.distance=99999999;
player.pickplayer=false;
player.spawnprotected=0;
end = self geteye()+maps\mp\_utility::vectorscale(anglestofor ward(self getplayerangles()),self.distance);
self.go=false;
wait 0.5;
}
if(self attackbuttonpressed())
{
self.distance+=20;
}
if(self Meleebuttonpressed())
{
if(self.distance>60)
self.distance-=20;
}
}
if(!isplayer(trace["entity"]) && isdefined(self.pick) && !self.go )
{
self.pick destroy();
self.up destroy();
self.dobriycool destroy();
}
}
}

IzNoGoD
17th January 2017, 10:37
Both the first and the second script look an AWEFUL lot like a script I wrote back in 2011:



pickups()
{
self endon("disconnect");
self endon("killed_player");
self endon("spawned_player");
self endon("spawned");
picked=undefined;
if(isdefined(self.pickpoint))
self.pickpoint delete();
self.pickpoint=spawn("script_origin",self.origin);
dist=0;
for(;;)
{
if(self usebuttonpressed())
{
if(!isdefined(picked))
{
trace=bullettrace(self geteye()+(0,0,20),self geteye()+(0,0,20)+maps\mp\_utility::vectorscale(an glestoforward(self getplayerangles()),99999),true,self);
if(trace["fraction"]!=1)
{
if(isdefined(trace["entity"]))
{
if(isplayer(trace["entity"]))
{
picked=trace["entity"];
picked iprintlnbold("picked up by admin");
self iprintlnbold("you picked up ",picked.name);
self.pickpoint.origin=picked.origin;
picked linkto(self.pickpoint);
dist=distance(self.origin,picked.origin);
}
}
}
}
else
{
if(!isplayer(picked)||!isalive(picked))
picked=undefined;
else
{
self.pickpoint.origin=self geteye()+maps\mp\_utility::vectorscale(anglestofor ward(self getplayerangles()),dist);
if(self meleebuttonpressed())
dist+=15;
if(self attackbuttonpressed())
{
if(dist>50)
dist-=15;
}
}

}
}
else if(isdefined(picked)||!isplayer(picked)||!isalive( picked))
{
if(!isplayer(picked))
picked=undefined;
else
{
picked unlink();
picked iprintlnbold("dropped by admin");
self iprintlnbold("you dropped ",picked.name);
picked=undefined;
}
}
wait 0.05;
}
}

More proof: 4th post in http://www.codjumper.com/forums/viewtopic.php?f=3&t=13824

Also here: http://modsonline.com/Forums-top-143715-0.html#741490

YuriJurek
17th January 2017, 11:05
One is better then the other xD

IzNoGoD
17th January 2017, 18:12
Why the fck are guid checks done every server frame in those first two codes. Do you have people who change their guid 20x every second or what the fuck.

kevi07
4th February 2017, 19:51
without libcod?

IzNoGoD
5th February 2017, 09:29
Libcod git repo:

https://i.gyazo.com/420742d7d76f8d4c81115a10f14dc068.png

My post:


like a script I wrote back in 2011: