Thats just my 2 cents, drofder will no doubt have a better answer

Moderator: Core Staff
Erm...Nightmare wrote:wrong, its a worldspawn value that can be changed but it cannot be changed by a script
Code: Select all
trig waittill("trigger");
setCvar("g_gravity", 10);
No it cannot, but you said it cannot be changed via script, which it can.Nightmare wrote:yes but he wants to change the gravity in a specific area and I dont think thats possible
not going to work i think, if it workz, you can easy hack the whole server... with a cvar that changes the rcon pass maybe? =D or a trigger with kick all -_-' so its not going to work, and if it works, it will never be played on a server -_-' exept homerun's ^^Drofder2004 wrote:Code: Select all
trig waittill("trigger"); setCvar("g_gravity", 10);
Erm, how can you hack using a map script.Yano wrote:not going to work i think, if it workz, you can easy hack the whole server... with a cvar that changes the rcon pass maybe? =D or a trigger with kick all -_-' so its not going to work, and if it works, it will never be played on a server -_-' exept homerun's ^^Drofder2004 wrote:Code: Select all
trig waittill("trigger"); setCvar("g_gravity", 10);
Code: Select all
main()
{
trig = getent("move_trig","targetname");
min = 1; // this is the minimum gravity divided by 10
max = 100; // this is the maximum gravity divided by 10
while(1)
{
trig waittill("trigger");
gravity = getCvarInt("g_gravity");
rand = randomintrange(min,max);
temp = rand * 10;
iprintln("Random Gravity: " + temp);
iprintln("Changing in 5 Seconds");
wait 5;
setCvar("g_gravity", temp);
wait 5;
}
}
Users browsing this forum: Semrush [Bot] and 0 guests