[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4787: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3922)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4789: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3922)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4790: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3922)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4791: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3922)
InsideQC Forums • View topic - Limited "God" Mode -- Thoughts

Limited "God" Mode -- Thoughts

Discuss programming topics for the various GPL'd game engine sources.

Moderator: InsideQC Admins

Limited "God" Mode -- Thoughts

Postby Baker » Sat Apr 13, 2013 7:18 am

In single player and coop, I'd like to hack in a "weaker god mode option" server-side that doesn't protect against

1. trigger_hurt
2. lava, slime
3. squishers

This way you can play in coop never suffering a death penalty aside from "must-die" situations like falling into lava, falling into the void or a trap meant to kill (which may have no true escape anyway).

I'm mostly talking out loud here, but what I am trying to avoid is having to make an enormous journey back to where you are if you die (which can take quite a while on some large maps).

Recording this here so I don't forget my thoughts.

[Mod side QuakeC isn't an option. I want this to work with long-dead closed source single player map releases.]
The night is young. How else can I annoy the world before sunsrise? 8) Inquisitive minds want to know ! And if they don't -- well like that ever has stopped me before ..
User avatar
Baker
 
Posts: 3666
Joined: Tue Mar 14, 2006 5:15 am

Re: Limited "God" Mode -- Thoughts

Postby Spirit » Sat Apr 13, 2013 9:19 am

In singleplayer just use savegames.

In coop I would love some sort of teleporter other players who plant for you to resume them (time penalty or something). Like town portals in Diablo.
Improve Quaddicted, send me a pull request: https://github.com/SpiritQuaddicted/Quaddicted-reviews
Spirit
 
Posts: 1037
Joined: Sat Nov 20, 2004 9:00 pm

Re: Limited "God" Mode -- Thoughts

Postby Hectate » Sat Apr 13, 2013 2:25 pm

I agree with Spirit about Single-player; this is the very purpose of saved games. Perhaps an auto-save would be more convenient though.

The teleporter Spirit mentions for Coop reminds me of playing Halo with my brother - if a player died they would respawn near to the other player so they could continue together. I presume this was also forced by the extremely large levels being streamed into the engine as they were traversed - you wouldn't want to have to reload the beginning of a map while another player was later on in it.
One note about the respawn though; the dead player wouldn't respawn unless there was no longer a danger to the living player. I expect this was a "proximity to nearest enemy" check (you could run away fast enough to get the other player spawned to help you). In many respects it's just an extension of the way the Halo handles shield regeneration; if you survive an encounter you'll get it all back anyway.
Hectate
 
Posts: 8
Joined: Mon Mar 11, 2013 12:38 am

Re: Limited "God" Mode -- Thoughts

Postby mankrip » Sat Apr 13, 2013 4:49 pm

Ph'nglui mglw'nafh mankrip Hell's end wgah'nagl fhtagn.
==-=-=-=-=-=-=-=-=-=-==
/ /
User avatar
mankrip
 
Posts: 915
Joined: Fri Jul 04, 2008 3:02 am

Re: Limited "God" Mode -- Thoughts

Postby frag.machine » Sat Apr 13, 2013 6:52 pm

I know FrikaC made a cgi-bin version of the quakec interpreter once and wrote part of his website in QuakeC :) (LordHavoc)
User avatar
frag.machine
 
Posts: 2120
Joined: Sat Nov 25, 2006 1:49 pm

Re: Limited "God" Mode -- Thoughts

Postby Baker » Sat Apr 13, 2013 7:30 pm

Last edited by Baker on Sat Apr 13, 2013 7:34 pm, edited 1 time in total.
The night is young. How else can I annoy the world before sunsrise? 8) Inquisitive minds want to know ! And if they don't -- well like that ever has stopped me before ..
User avatar
Baker
 
Posts: 3666
Joined: Tue Mar 14, 2006 5:15 am

Re: Limited "God" Mode -- Thoughts

Postby Spike » Sat Apr 13, 2013 7:33 pm

If you know how to activate the god cheat, you probably know the noclip cheat.
You've still not convinced me about why it might be good to encourage cheating.

Actually, what might be interesting in coop is shared health. :s
.
Spike
 
Posts: 2914
Joined: Fri Nov 05, 2004 3:12 am
Location: UK

Re: Limited "God" Mode -- Thoughts

Postby Baker » Sat Apr 13, 2013 7:37 pm

The night is young. How else can I annoy the world before sunsrise? 8) Inquisitive minds want to know ! And if they don't -- well like that ever has stopped me before ..
User avatar
Baker
 
Posts: 3666
Joined: Tue Mar 14, 2006 5:15 am

Re: Limited "God" Mode -- Thoughts

Postby mankrip » Sat Apr 13, 2013 8:40 pm

Another option would be to edit the 'give' command to include the pentagram with an optional timeout, so the player could type "give i 20" (i for "invulnerability", or p for "pentagram") in the console to get the pentagram with a timeout of 20 seconds.

Since the pentagram times out, there's no need to make sure that the player receives damage under certain situations.
Ph'nglui mglw'nafh mankrip Hell's end wgah'nagl fhtagn.
==-=-=-=-=-=-=-=-=-=-==
/ /
User avatar
mankrip
 
Posts: 915
Joined: Fri Jul 04, 2008 3:02 am

Re: Limited "God" Mode -- Thoughts

Postby Spike » Sat Apr 13, 2013 8:50 pm

bind w "+forward; give i 20"
.
Spike
 
Posts: 2914
Joined: Fri Nov 05, 2004 3:12 am
Location: UK

Re: Limited "God" Mode -- Thoughts

Postby qbism » Sun Apr 14, 2013 12:32 am

Hack a "rune-drop" function into the engine that can bind to a key. Each player has a rune, and will respawn at their previous rune-drop point. Anyone foolish enough to rune-drop while falling into lava deserves the resulting fate. :twisted:
User avatar
qbism
 
Posts: 1236
Joined: Thu Nov 04, 2004 5:51 am

Re: Limited "God" Mode -- Thoughts

Postby gnounc » Mon Apr 15, 2013 12:49 am

I made a flag drop mod ...sometime last year?
Inspired by portal, halo, and diablo 2's town portal.
Proooobably dont have the code, but I doubt you'd need it, its an easy enough mod.

It was actually pretty fun to mes with.
my
gnounc's
User avatar
gnounc
 
Posts: 424
Joined: Mon Apr 06, 2009 6:26 am

Re: Limited "God" Mode -- Thoughts

Postby r00k » Mon Apr 15, 2013 3:04 pm

impulse 255 give quad, make impulse 254 give pent.. the progs.dat will set the default duration..
edit the coop mod to spawn you at your fallen backpack, on your input. Let the player "cam" the area around their backpack,
"press fire or jump to respawn" ..
r00k
 
Posts: 1111
Joined: Sat Nov 13, 2004 10:39 pm

Re: Limited "God" Mode -- Thoughts

Postby frag.machine » Mon Apr 15, 2013 4:18 pm

Or, just mimic the Half Life "buddha" mode: the player do receive damage normally, but it never goes below 1. And it is not fully invulnerable (trigger_hurt placed in void areas like chasms still can kill the player).
Again, something better suited to a QuakeC mod, not to be wired directly into the engine IMHO.
I know FrikaC made a cgi-bin version of the quakec interpreter once and wrote part of his website in QuakeC :) (LordHavoc)
User avatar
frag.machine
 
Posts: 2120
Joined: Sat Nov 25, 2006 1:49 pm


Return to Engine Programming

Who is online

Users browsing this forum: No registered users and 2 guests