Grav Gun And Move Players

Have a question you need to ask? Need help? Ask here!

Moderator: Core Staff

Post Reply
Bennetts
CJ Wannabe
CJ Wannabe
Posts: 4
Joined: June 20th, 2011, 8:38 am

Grav Gun And Move Players

Post by Bennetts » June 21st, 2011, 11:38 am

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
:D

User avatar
Randy
CJ Wannabe
CJ Wannabe
Posts: 23
Joined: April 27th, 2011, 2:24 pm

Re: Grav Gun And Move Players

Post by Randy » June 21st, 2011, 12:37 pm

Bennetts 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
:D
Use the mod of CodJumper Server #6
Image
Image

Vi Veri Veniversum Vivus Vici. "By the power of truth, I, while living, have conquered the universe." - Faust

Perak
CJ Wannabe
CJ Wannabe
Posts: 36
Joined: January 23rd, 2011, 5:01 pm

Re: Grav Gun And Move Players

Post by Perak » June 21st, 2011, 12:44 pm

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 :o
Image

IzNoGoD
CJ Worshipper
CJ Worshipper
Posts: 343
Joined: January 6th, 2009, 8:39 pm
Location: Netherlands/Holland

Re: Grav Gun And Move Players

Post by IzNoGoD » June 21st, 2011, 12:54 pm

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;
        }
}
LMGTFY!

Its not a glitch... Its the future!

Bennetts
CJ Wannabe
CJ Wannabe
Posts: 4
Joined: June 20th, 2011, 8:38 am

Re: Grav Gun And Move Players

Post by Bennetts » June 22nd, 2011, 8:37 am

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;
        }
}
I am on Cod4 if i didn't say :P but will this work for it aswell?

IzNoGoD
CJ Worshipper
CJ Worshipper
Posts: 343
Joined: January 6th, 2009, 8:39 pm
Location: Netherlands/Holland

Re: Grav Gun And Move Players

Post by IzNoGoD » June 22nd, 2011, 10:59 am

It most likely will
Just try it
LMGTFY!

Its not a glitch... Its the future!

Bennetts
CJ Wannabe
CJ Wannabe
Posts: 4
Joined: June 20th, 2011, 8:38 am

Re: Grav Gun And Move Players

Post by Bennetts » June 25th, 2011, 6:38 am

IzNoGoD wrote:It most likely will
Just try it
We are sorta new so how exactly do you put the code in properly?

IzNoGoD
CJ Worshipper
CJ Worshipper
Posts: 343
Joined: January 6th, 2009, 8:39 pm
Location: Netherlands/Holland

Re: Grav Gun And Move Players

Post by IzNoGoD » June 25th, 2011, 5:48 pm

Call pickups() threaded on the admin.
LMGTFY!

Its not a glitch... Its the future!

Bennetts
CJ Wannabe
CJ Wannabe
Posts: 4
Joined: June 20th, 2011, 8:38 am

Re: Grav Gun And Move Players

Post by Bennetts » June 26th, 2011, 9:20 am

IzNoGoD wrote:Call pickups() threaded on the admin.
I ment like applying it to the server were we edit it in and how we do that.

IzNoGoD
CJ Worshipper
CJ Worshipper
Posts: 343
Joined: January 6th, 2009, 8:39 pm
Location: Netherlands/Holland

Re: Grav Gun And Move Players

Post by IzNoGoD » June 26th, 2011, 8:45 pm

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 :P)
LMGTFY!

Its not a glitch... Its the future!

souster
CJ Wannabe
CJ Wannabe
Posts: 5
Joined: January 8th, 2012, 6:26 pm

Re: Grav Gun And Move Players

Post by souster » January 14th, 2014, 11:57 am

Perak 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)
I know this was from AGESSSS ago! But can you create a new download link? as megaupload is old ;)

User avatar
BLink101
CJ Wannabe
CJ Wannabe
Posts: 1
Joined: June 16th, 2014, 7:34 am

Re: Grav Gun And Move Players

Post by BLink101 » June 18th, 2014, 2:58 pm

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

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 6 guests