Thats just my 2 cents, drofder will no doubt have a better answer
Funfair
Moderator: Core Staff
-
Luke
- Past/Inactive Team Member

- Posts: 1774
- Joined: May 31st, 2005, 12:42 am
- Location: Cornwall, UK
-
Pedsdude
- Site Admin

- Posts: 15914
- Joined: October 15th, 2004, 7:18 pm
- Location: UK
-
Moriar
- CJ Newbie

- Posts: 88
- Joined: March 12th, 2006, 8:15 pm
- Location: The Netherlands
Well, there is an option....
Make a trigger, press n, and then set the gravity: 100, but that means the whole map is set that gravity: 100
And I can't make some triggers around the trigger with gravity: 800
It will all change the gravity to the latest set gravity
Does anyone know how to set it different?
Please help
Drofder must know to answer
Or anyone else.....

Make a trigger, press n, and then set the gravity: 100, but that means the whole map is set that gravity: 100
And I can't make some triggers around the trigger with gravity: 800
It will all change the gravity to the latest set gravity
Does anyone know how to set it different?
Please help
Drofder must know to answer
Or anyone else.....
-
creator
- CJ Worshipper

- Posts: 492
- Joined: July 6th, 2006, 11:37 pm
- Location: The Netherlands
- Contact:
-
Moriar
- CJ Newbie

- Posts: 88
- Joined: March 12th, 2006, 8:15 pm
- Location: The Netherlands
-
Nightmare
- Core Staff

- Posts: 2688
- Joined: January 12th, 2006, 10:09 pm
- Contact:
wrong, its a worldspawn value that can be changed but it cannot be changed by a script
Coding is Poetry. Mapping is Art.
"Cause im the sexiest mapper ever...except for nm, that sexy man" - Soviet
-=[CoDJumper.com Movies]=-
[Ambush] || [Backlot] || [Bloc] || [Bog] || [Broadcast] || [Chinatown] || [Countdown]
[Crash] || [Creek] || [Crossfire] || [District] || [Downpour] || [Killhouse] || [Overgrown]
[Pipeline] || [Shipment & Wetwork] || [Showdown] || [Strike] || [Vacant]
"Cause im the sexiest mapper ever...except for nm, that sexy man" - Soviet
-=[CoDJumper.com Movies]=-
[Ambush] || [Backlot] || [Bloc] || [Bog] || [Broadcast] || [Chinatown] || [Countdown]
[Crash] || [Creek] || [Crossfire] || [District] || [Downpour] || [Killhouse] || [Overgrown]
[Pipeline] || [Shipment & Wetwork] || [Showdown] || [Strike] || [Vacant]
-
Moriar
- CJ Newbie

- Posts: 88
- Joined: March 12th, 2006, 8:15 pm
- Location: The Netherlands
-
Drofder2004
- Core Staff

- Posts: 13315
- Joined: April 13th, 2005, 8:22 pm
- Location: UK, London
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);
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
-
Nightmare
- Core Staff

- Posts: 2688
- Joined: January 12th, 2006, 10:09 pm
- Contact:
yes but he wants to change the gravity in a specific area and I dont think thats possible
Coding is Poetry. Mapping is Art.
"Cause im the sexiest mapper ever...except for nm, that sexy man" - Soviet
-=[CoDJumper.com Movies]=-
[Ambush] || [Backlot] || [Bloc] || [Bog] || [Broadcast] || [Chinatown] || [Countdown]
[Crash] || [Creek] || [Crossfire] || [District] || [Downpour] || [Killhouse] || [Overgrown]
[Pipeline] || [Shipment & Wetwork] || [Showdown] || [Strike] || [Vacant]
"Cause im the sexiest mapper ever...except for nm, that sexy man" - Soviet
-=[CoDJumper.com Movies]=-
[Ambush] || [Backlot] || [Bloc] || [Bog] || [Broadcast] || [Chinatown] || [Countdown]
[Crash] || [Creek] || [Crossfire] || [District] || [Downpour] || [Killhouse] || [Overgrown]
[Pipeline] || [Shipment & Wetwork] || [Showdown] || [Strike] || [Vacant]
-
Drofder2004
- Core Staff

- Posts: 13315
- Joined: April 13th, 2005, 8:22 pm
- Location: UK, London
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

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
-
YaNo
- CJ Worshipper

- Posts: 460
- Joined: May 5th, 2005, 9:34 pm
- Location: Azeroth
- Contact:
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);
-
Drofder2004
- Core Staff

- Posts: 13315
- Joined: April 13th, 2005, 8:22 pm
- Location: UK, London
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);
Firstly the admin must add the map to his server host.
Secondly if I give a straight answer without saying "untested" or "guess" or simliar, than I know it works.
Here, for a bit of fun use this script for rnadom gravity.
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;
}
}
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




