Funfair

Have a jump map that we don't have on our site? Let us know!

Moderator: Core Staff

Luke
Past/Inactive Team Member
Past/Inactive Team Member
Posts: 1774
Joined: May 31st, 2005, 12:42 am
Location: Cornwall, UK

Post by Luke » August 31st, 2006, 10:49 pm

Fairly sure you cant set the gravity for individual players. But you can control how the player moves, i think theres a couple differen't ways, maybe using something like the jump pad drofder made or using the linkto command.
Thats just my 2 cents, drofder will no doubt have a better answer :P

Pedsdude
Site Admin
Site Admin
Posts: 15914
Joined: October 15th, 2004, 7:18 pm
Location: UK

Post by Pedsdude » September 1st, 2006, 3:33 pm

Moriar wrote:FUNFAIR IS FUN!!
You don't say?! :D

We've had this argument about gravity before and I'm pretty sure we came to the conclusion that it's not possible (as it's a server-side command which affects EVERYONE), but who knows, maybe there is a way?
Image
Image

User avatar
Moriar
CJ Newbie
CJ Newbie
Posts: 88
Joined: March 12th, 2006, 8:15 pm
Location: The Netherlands

Post by Moriar » September 1st, 2006, 5:34 pm

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 :cry:
Does anyone know how to set it different?

Please help 8) 8) 8)

Drofder must know to answer 8) 8) :lol:

Or anyone else..... :roll: :wink: :twisted:

Luke
Past/Inactive Team Member
Past/Inactive Team Member
Posts: 1774
Joined: May 31st, 2005, 12:42 am
Location: Cornwall, UK

Post by Luke » September 1st, 2006, 6:29 pm

As peds said, its a server side setting, you can only change it with rcon permission

creator
CJ Worshipper
CJ Worshipper
Posts: 492
Joined: July 6th, 2006, 11:37 pm
Location: The Netherlands
Contact:

Post by creator » September 1st, 2006, 7:21 pm

little mistake in pk3 :P funfair.pk3/textures there is a zip in it... lol :P
Cod 1 Mapper&Modder&Moddeler

User avatar
Moriar
CJ Newbie
CJ Newbie
Posts: 88
Joined: March 12th, 2006, 8:15 pm
Location: The Netherlands

Post by Moriar » September 2nd, 2006, 1:38 am

no....its not a server setting....honestly, I made a map and I changed it in the map, so its not a server setting....


And if it's not a server setting, you're probably able to set gravity in a script, right?
:)

User avatar
Nightmare
Core Staff
Core Staff
Posts: 2688
Joined: January 12th, 2006, 10:09 pm
Contact:

Post by Nightmare » September 2nd, 2006, 1:43 am

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]

User avatar
Moriar
CJ Newbie
CJ Newbie
Posts: 88
Joined: March 12th, 2006, 8:15 pm
Location: The Netherlands

Post by Moriar » September 2nd, 2006, 2:16 am

WHY? :cry: :cry: :cry:

Why isn't it possible to set low gravity in a trigger or in a specific area?
It would be such a nice thing :twisted:
Or can you edit the worldspawn settings?.....my fault, it wasn't a trigger :lol: but a worldspawn nm is right!

Luke
Past/Inactive Team Member
Past/Inactive Team Member
Posts: 1774
Joined: May 31st, 2005, 12:42 am
Location: Cornwall, UK

Post by Luke » September 2nd, 2006, 2:27 am

Moriar wrote:no....its not a server setting....honestly, I made a map and I changed it in the map, so its not a server setting....
Probably because you were hosting a local server?

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

Post by Drofder2004 » September 2nd, 2006, 2:29 am

Nightmare wrote:wrong, its a worldspawn value that can be changed but it cannot be changed by a script
Erm...

Code: Select all

trig waittill("trigger");
setCvar("g_gravity", 10);
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
Nightmare
Core Staff
Core Staff
Posts: 2688
Joined: January 12th, 2006, 10:09 pm
Contact:

Post by Nightmare » September 2nd, 2006, 4:33 am

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]

User avatar
-venom-
CJ Worshipper
CJ Worshipper
Posts: 333
Joined: May 9th, 2005, 7:02 pm
Location: USA

Post by -venom- » September 2nd, 2006, 5:11 am

Just played it last night, another great map by nightmare :wink:


and if you made a sequel you should put in a haunted house :D
x-fire: word13
Image

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

Post by Drofder2004 » September 2nd, 2006, 4:22 pm

Nightmare wrote:yes but he wants to change the gravity in a specific area and I dont think thats possible
No it cannot, but you said it cannot be changed via script, which it can.
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 » September 2nd, 2006, 4:37 pm

Drofder2004 wrote:

Code: Select all

trig waittill("trigger");
setCvar("g_gravity", 10);
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 ^^

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

Post by Drofder2004 » September 3rd, 2006, 4:35 am

Yano wrote:
Drofder2004 wrote:

Code: Select all

trig waittill("trigger");
setCvar("g_gravity", 10);
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 ^^
Erm, how can you hack using a map script.

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;
}
}
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

Post Reply

Who is online

Users browsing this forum: Semrush [Bot] and 0 guests