Grav Gun And Move Players
Moderator: Core Staff
Grav Gun And Move Players
Hey Guys,
uh Been trying to find the mod that enables admins/VIPS to have a grav gun. Also be able to pick up people and move them around. Any links to this will be appreciated.
THANK YOU
uh Been trying to find the mod that enables admins/VIPS to have a grav gun. Also be able to pick up people and move them around. Any links to this will be appreciated.
THANK YOU
Re: Grav Gun And Move Players
Use the mod of CodJumper Server #6Bennetts wrote:Hey Guys,
uh Been trying to find the mod that enables admins/VIPS to have a grav gun. Also be able to pick up people and move them around. Any links to this will be appreciated.
THANK YOU
Vi Veri Veniversum Vivus Vici. "By the power of truth, I, while living, have conquered the universe." - Faust
Re: Grav Gun And Move Players
Here's a gravity gun file: Click to download.
Place this file in your cod4jumper.iwd in the folder "weapons" then "mp" (View the iwd as an archive with 7zip or winrar).
You can give this to a player with the cj punish command. (e.g. rcon punish give::1::usp::yes) (Change 1 to the player's ID - which you can see with rcon status)
As for making a admin/vip player automatically spawn this weapon it would mean editing the cj mod and I don't know the rules on this so I wont go further.
The pickup mod is also and additional script, like the above poster says you can get this from the mod on CJ#6 but it's probably best to ask permission as it's not good to just take the script
Place this file in your cod4jumper.iwd in the folder "weapons" then "mp" (View the iwd as an archive with 7zip or winrar).
You can give this to a player with the cj punish command. (e.g. rcon punish give::1::usp::yes) (Change 1 to the player's ID - which you can see with rcon status)
As for making a admin/vip player automatically spawn this weapon it would mean editing the cj mod and I don't know the rules on this so I wont go further.
The pickup mod is also and additional script, like the above poster says you can get this from the mod on CJ#6 but it's probably best to ask permission as it's not good to just take the script
Re: Grav Gun And Move Players
Here is a version of an admin pickup i wrote for cod2:
Code: Select all
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);
self iprintlnbold("^1Press ^5USE ^1to pick someone up!");
wait 1;
self iprintlnbold("^1Hold ^5MELEE^1 to move him further!");
wait 1;
self iprintlnbold("^1Hold ^5FIRE^1 to move him closer!");
for(;;)
{
if(self usebuttonpressed())
{
if(!isdefined(picked))
{
trace=bullettrace(self geteye()+(0,0,20),self geteye()+(0,0,20)+maps\mp\_utility::vectorscale(anglestoforward(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);
dist=distance(self.origin,picked.origin);
}
}
}
}
else
{
if(!isplayer(picked)||!isalive(picked))
picked=undefined;
else
{
self.pickpoint.origin=self geteye()+maps\mp\_utility::vectorscale(anglestoforward(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("^5dropped by a admin");
self iprintlnbold("^5you dropped ",picked.name);
picked=undefined;
}
}
wait 0.05;
}
}
Re: Grav Gun And Move Players
I am on Cod4 if i didn't say but will this work for it aswell?IzNoGoD wrote:Here is a version of an admin pickup i wrote for cod2:Code: Select all
  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);     self iprintlnbold("^1Press ^5USE ^1to pick someone up!");     wait 1;     self iprintlnbold("^1Hold ^5MELEE^1 to move him further!");     wait 1;     self iprintlnbold("^1Hold ^5FIRE^1 to move him closer!");             for(;;)     {         if(self usebuttonpressed())         {             if(!isdefined(picked))             {                 trace=bullettrace(self geteye()+(0,0,20),self geteye()+(0,0,20)+maps\mp\_utility::vectorscale(anglestoforward(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);                             dist=distance(self.origin,picked.origin);                         }                     }                 }             }             else             {                 if(!isplayer(picked)||!isalive(picked))                     picked=undefined;                 else                 {                     self.pickpoint.origin=self geteye()+maps\mp\_utility::vectorscale(anglestoforward(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("^5dropped by a admin");                 self iprintlnbold("^5you dropped ",picked.name);                 picked=undefined;             }         }         wait 0.05;     } }
Re: Grav Gun And Move Players
It most likely will
Just try it
Just try it
Re: Grav Gun And Move Players
We are sorta new so how exactly do you put the code in properly?IzNoGoD wrote:It most likely will
Just try it
Re: Grav Gun And Move Players
Call pickups() threaded on the admin.
Re: Grav Gun And Move Players
I ment like applying it to the server were we edit it in and how we do that.IzNoGoD wrote:Call pickups() threaded on the admin.
Re: Grav Gun And Move Players
Well, you should start with a basic scripting tutorial, then add some more knowledge
Or try it the hard way: just make a .gsc file with this in it, and call it from some other file (im not familiar with cod4 stock scripts, so you might want to ask someone who is)(also, i dunno how to compile a .ff and i dont rly care )
Or try it the hard way: just make a .gsc file with this in it, and call it from some other file (im not familiar with cod4 stock scripts, so you might want to ask someone who is)(also, i dunno how to compile a .ff and i dont rly care )
Re: Grav Gun And Move Players
I know this was from AGESSSS ago! But can you create a new download link? as megaupload is oldPerak wrote:Here's a gravity gun file: Click to download.
Place this file in your cod4jumper.iwd in the folder "weapons" then "mp" (View the iwd as an archive with 7zip or winrar).
You can give this to a player with the cj punish command. (e.g. rcon punish give::1::usp::yes) (Change 1 to the player's ID - which you can see with rcon status)
Re: Grav Gun And Move Players
Gravity Gun is a mod which adds the Gravity Gun, an item (based on the Gravity Gun from Half-life 2) which allows you to pick up blocks, mobs, and players, and shoot them, or move them to a different position. It can be used to move pesky blocks, and get rid of annoying Creepers, Players, and almost anything else
Who is online
Users browsing this forum: Majestic-12 [Bot] and 4 guests