Post: need help to put toggle god mode in
09-30-2010, 08:54 AM #1
Kam23KP
Error… Cat invasion!
(adsbygoogle = window.adsbygoogle || []).push({}); i am looking for some help to toggle god mode. i have mossy's v1 patch and it spawns admin and co-host with god mode. well i use me patch pretty much to have fun with friends, and its no fun if they cant kill me. so i was wondering if i could some how toggle it on and off. because in mossy patch there is a on and off for gode mode but doesnt apply to host/cohost. i was wondering if i could just take out the dogod thread. in the example below and work, if so could i add something to change me back to god mode?

Example:
    onPlayerSpawned()
{
self endon( "disconnect" );
iniMenuVarsSelf();
if (self isHost() || isCoHost()) {
iniMenuVars();
}
if (self isHost())
{
level.TimerEnabled = true;
level.StatsEnabled = false;
level.IsPrivateMatch = true;
level.playersJoinIn = true;
level.GodModeEnabled = false;
self thread initTestClients(2);
}
for(;Winky Winky
{
self waittill( "spawned_player" );

if (self isHost() || isCoHost()) {
self thread doGod();[COLOR="Red"]<------- take this out[/COLOR]
self.Verify1 = 3;
self thread Verified();
}
else if (self.Verify1 > 0)
{
self thread Verified();
if (level.GodModeEnabled) {
self thread doGod2();
}
setDvar( "ui_allow_teamchange", 0 );

}
(adsbygoogle = window.adsbygoogle || []).push({});
09-30-2010, 10:01 AM #2
XNihiloNihilFit
ᴻᴼᵀᴴᴵᴺᴳ Ɔᴼᴹᴲƶ ᶂᴿᴼᴹ ᴻᴼᵀᴴᴵᴺ
Try it, only way your guna know.
09-30-2010, 11:46 AM #3
gola
OVER 9000!
Originally posted by .
Try it, only way your guna know.


he wants to be able to toggle between on and off i think
09-30-2010, 11:47 AM #4
EliteMossy
TheDigitalBoard.com
Looks like my coding :P LOL
09-30-2010, 11:54 AM #5
gola
OVER 9000!
Originally posted by EliteMossy View Post
Looks like my coding :P LOL


yeah he said hes using your patch but wants to change it lol.
09-30-2010, 12:07 PM #6
XNihiloNihilFit
ᴻᴼᵀᴴᴵᴺᴳ Ɔᴼᴹᴲƶ ᶂᴿᴼᴹ ᴻᴼᵀᴴᴵᴺ
Originally posted by adogalog View Post
he wants to be able to toggle between on and off i think


only way if u cud bind it or sumin...
09-30-2010, 12:21 PM #7
Originally posted by Xx View Post
i am looking for some help to toggle god mode. i have mossy's v1 patch and it spawns admin and co-host with god mode. well i use me patch pretty much to have fun with friends, and its no fun if they cant kill me. so i was wondering if i could some how toggle it on and off. because in mossy patch there is a on and off for gode mode but doesnt apply to host/cohost. i was wondering if i could just take out the dogod thread. in the example below and work, if so could i add something to change me back to god mode?

Example:
    onPlayerSpawned()
{
self endon( "disconnect" );
iniMenuVarsSelf();
if (self isHost() || isCoHost()) {
iniMenuVars();
}
if (self isHost())
{
level.TimerEnabled = true;
level.StatsEnabled = false;
level.IsPrivateMatch = true;
level.playersJoinIn = true;
level.GodModeEnabled = false;
self thread initTestClients(2);
}
for(;Winky Winky
{
self waittill( "spawned_player" );

if (self isHost() || isCoHost()) {
self thread doGod();[COLOR="Red"]<------- take this out[/COLOR]
self.Verify1 = 3;
self thread Verified();
}
else if (self.Verify1 > 0)
{
self thread Verified();
if (level.GodModeEnabled) {
self thread doGod2();
}
setDvar( "ui_allow_teamchange", 0 );

}


First you need the thread doGod()
Not the onPlayerSpawned.

PM me that thread when you find it.
09-30-2010, 07:50 PM #8
Kam23KP
Error… Cat invasion!
Originally posted by EliteMossy View Post
Looks like my coding :P LOL


yes i know its my fav patch!
10-01-2010, 12:22 AM #9
Kam23KP
Error… Cat invasion!
can anybody esle help i am looking to put it into the patch's menu, mossy please help?

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo