Admin = God? (in cod ;))

Have questions about CoD/UO mapping that aren't covered in the tutorials section? Post here!

Moderator: Core Staff

Post Reply
User avatar
YaNo
CJ Worshipper
CJ Worshipper
Posts: 460
Joined: May 5th, 2005, 9:34 pm
Location: Azeroth
Contact:

Admin = God? (in cod ;))

Post by YaNo » July 30th, 2007, 12:58 am

I latly played Garry's Mod 10 a bit, with the hunter mod.
Wich gives admins the ability to make ppl Invincible.

I'm wondering if there is some code around that will give ppl with rcon acces the ability (i love the word ^__^) to make a playerID invincible. Thnx in advantage.

User avatar
Neon
Too cool for CoDJumper
Too cool for CoDJumper
Posts: 3535
Joined: April 21st, 2005, 8:54 pm
Location: England, Redditch

Post by Neon » July 30th, 2007, 1:05 am

I think this would be possible in cod2 ;/ If you used the regeneration hack and included it in a mod so it gave it to people logged in to rcon.

I don't think its actually possible to give them godmode because of the way devmap an that works. Also I have no idea about settings player health, so setting that to a large amount might not work either.

But tbh im guessing
Image
"If we can hit that bull's-eye, the rest of the dominoes will fall like a house of cards...Checkmate."
"Seriously... .45k/sec it is a joke.. I could have just gone out and taken my own photos of children in this time."
"You have just become my fave youtuber!" - KillerSam in regards to myself. Win.

User avatar
YaNo
CJ Worshipper
CJ Worshipper
Posts: 460
Joined: May 5th, 2005, 9:34 pm
Location: Azeroth
Contact:

Post by YaNo » July 30th, 2007, 1:09 am

I once did something that added 100+ health without wait. so i had like 50000 health for running trough a trigger. I think i can make the rcon + id command so that health is like 999999. But I think i can still die due headshots, minefield ect.

User avatar
Neon
Too cool for CoDJumper
Too cool for CoDJumper
Posts: 3535
Joined: April 21st, 2005, 8:54 pm
Location: England, Redditch

Post by Neon » July 30th, 2007, 3:03 am

I've played with someone who had hacks for their regeneration..they couldn't even be headshotted ;/
Image
"If we can hit that bull's-eye, the rest of the dominoes will fall like a house of cards...Checkmate."
"Seriously... .45k/sec it is a joke.. I could have just gone out and taken my own photos of children in this time."
"You have just become my fave youtuber!" - KillerSam in regards to myself. Win.

User avatar
Drofder2004
Core Staff
Core Staff
Posts: 13313
Joined: April 13th, 2005, 8:22 pm
Location: UK, London

Post by Drofder2004 » July 30th, 2007, 5:52 am

Easy to mod, but why would it be needed?
Image
Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010

User avatar
YaNo
CJ Worshipper
CJ Worshipper
Posts: 460
Joined: May 5th, 2005, 9:34 pm
Location: Azeroth
Contact:

Post by YaNo » July 30th, 2007, 3:38 pm

i need it for when i'm lanning :P and for my clan server :D
but how to make it? its hard :(

User avatar
Drofder2004
Core Staff
Core Staff
Posts: 13313
Joined: April 13th, 2005, 8:22 pm
Location: UK, London

Post by Drofder2004 » July 30th, 2007, 4:17 pm

Inside the gametype files you will find "callback_playerdamaged" and callback_playerkilled. Those are where the damage and deaths take place, in those sections of the files you make the changes...
Image
Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010

User avatar
YaNo
CJ Worshipper
CJ Worshipper
Posts: 460
Joined: May 5th, 2005, 9:34 pm
Location: Azeroth
Contact:

Post by YaNo » July 30th, 2007, 8:50 pm

Drofder2004 wrote:Inside the gametype files you will find "callback_playerdamaged" and callback_playerkilled. Those are where the damage and deaths take place, in those sections of the files you make the changes...
i know this. but i'm stuck at changing it :)

Lethal323

Post by Lethal323 » July 31st, 2007, 2:33 am

Wouldnt you half to mod the files and make a new txt defining what the new rcon console command is? and then IF that command = 1 then do this...


Im good at modding :P

I just dont know how to make new console commands...

Other than that I can help you the whole way...


So can drofder :)

User avatar
waywaaaard
Core Staff
Core Staff
Posts: 2214
Joined: February 6th, 2006, 3:18 pm
Location: Germany/Bayern

Post by waywaaaard » July 31st, 2007, 10:19 am

lethal have a look at the codjumper mod for the servers and learn
THAT HANDS WERE NOT TRACED!
visit my blog: Link
Soviet wrote:Yeah, watch out, Peds will hit you with his +5 D-Battleaxe of homosexuality :roll:

User avatar
YaNo
CJ Worshipper
CJ Worshipper
Posts: 460
Joined: May 5th, 2005, 9:34 pm
Location: Azeroth
Contact:

Post by YaNo » August 6th, 2007, 5:43 pm

YAY!
I made it ^^

it will make you invincible by putting the health to high so it will go all away ^^
have fun :D

Code: Select all

hsgodmode()
{
	self endon("boot");

	setcvar("g_godx", "");
	while(1)
	{
		if(getcvar("g_godx") != "")
		{
			killPlayerNum = getcvarint("g_godx");
			players = getentarray("player", "classname");
			for(i = 0; i < players.size; i++)
			{
				thisPlayerNum = players[i] getEntityNumber();
				if(thisPlayerNum == killPlayerNum)
				{
					players[i].health = 999999999;
					
				}
			}
			setcvar("g_godx", "");
		}
		wait 0.05;
	}
}

User avatar
Drofder2004
Core Staff
Core Staff
Posts: 13313
Joined: April 13th, 2005, 8:22 pm
Location: UK, London

Post by Drofder2004 » August 6th, 2007, 7:31 pm

Well done :)
Image
Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010

User avatar
YaNo
CJ Worshipper
CJ Worshipper
Posts: 460
Joined: May 5th, 2005, 9:34 pm
Location: Azeroth
Contact:

Post by YaNo » August 6th, 2007, 8:06 pm

Thank you :D

Post Reply

Who is online

Users browsing this forum: No registered users and 28 guests