March 28, 2024, 07:11:42 pm

Author Topic: World Boundaries  (Read 2651 times)

0 Members and 1 Guest are viewing this topic.

Zeke

  • Crazy Man
  • *****
  • Posts: 935
  • Country: bg
  • VC:MP and LU beta tester
    • View Profile
World Boundaries
« on: August 01, 2011, 10:44:31 am »
Guys i got only 1 question, how can i make world bounds in PAWN.
I want to put them over whole havana and haiti here is a pic i want ppl to be inside the red line:
http://imageshack.us/photo/my-images/15/mapyp.png/
Agree Disagree Funny Winner Pwnt Informative Friendly Useful Optimistic Artistic Late Brain Donor

Quote
InstallHook(0x405AC0,(DWORD)CantFindFuckingAnim,0x405A95,
CantFindFuckingAnim_HookJmpCode,sizeof(CantFindFuckingAnim_HookJmpCode));
-------------------------------------------------
Quote
[00:41:12] <~Murdock> actually just transfering files
[00:41:16] <~Murdock> sounds, clientscripts etc
[00:42:05] <heekzs> what transfer method you uses
[00:43:03] <~Murdock> speed of light

Charley

  • Vice Underdog
  • Crazy Man
  • *
  • *
  • Posts: 4749
  • Country: 00
    • View Profile
Re: World Boundaries
« Reply #1 on: August 06, 2011, 01:43:35 pm »
Under OnGameModeInit()

SetWorldBounds(xmax,xmin,ymax,ymin);

Replace the words with the respective coordinates. Do /s ingame to save the coordinates of your current location to a file in your VC directory called 'vc-mp saved coords'
Agree Disagree Funny Winner Pwnt Informative Friendly Useful Optimistic Artistic Late Brain Donor

Writer of excessively long posts


Zeke

  • Crazy Man
  • *****
  • Posts: 935
  • Country: bg
  • VC:MP and LU beta tester
    • View Profile
Re: World Boundaries
« Reply #2 on: August 06, 2011, 01:47:18 pm »
Okay tnx imma try it  ;)

EDIT: will it work with squirrel
« Last Edit: August 06, 2011, 01:49:04 pm by Zeke »
Agree Disagree Funny Winner Pwnt Informative Friendly Useful Optimistic Artistic Late Brain Donor

Quote
InstallHook(0x405AC0,(DWORD)CantFindFuckingAnim,0x405A95,
CantFindFuckingAnim_HookJmpCode,sizeof(CantFindFuckingAnim_HookJmpCode));
-------------------------------------------------
Quote
[00:41:12] <~Murdock> actually just transfering files
[00:41:16] <~Murdock> sounds, clientscripts etc
[00:42:05] <heekzs> what transfer method you uses
[00:43:03] <~Murdock> speed of light

Thijn

  • Forum Administrator
  • Crazy Man
  • *
  • *
  • *
  • Posts: 2946
  • Country: nl
    • View Profile
Re: World Boundaries
« Reply #3 on: August 06, 2011, 02:19:16 pm »
You can the boundaries to your squirrel config.
Agree Disagree Funny Winner Pwnt Informative Friendly Useful Optimistic Artistic Late Brain Donor

I'm not totally useless,
I can be used as an bad example ;)

"Never do Today, What you can do Tomorrow"


NicoArin

  • Vice Underdogs (Inactive)
  • Crazy Man
  • *
  • Posts: 503
  • Country: uy
    • View Profile
Re: World Boundaries
« Reply #4 on: August 06, 2011, 04:01:34 pm »
You are just trying to copy my proyect.
Agree Disagree Funny Winner Pwnt Informative Friendly Useful Optimistic Artistic Late Brain Donor


Bass

  • Crazy Man
  • *****
  • Posts: 400
    • View Profile
Re: World Boundaries
« Reply #5 on: August 06, 2011, 06:01:25 pm »
You are just trying to copy my proyect.

Is he? :o.
Agree Disagree Funny Winner Pwnt Informative Friendly Useful Optimistic Artistic Late Brain Donor


Zeke

  • Crazy Man
  • *****
  • Posts: 935
  • Country: bg
  • VC:MP and LU beta tester
    • View Profile
Re: World Boundaries
« Reply #6 on: August 06, 2011, 06:54:46 pm »
You are just trying to copy my proyect.

Project  ???
 
I mean what does my problem with world boundaries have to do with your project  ???

+ Ive never heard of any project of yours.
So dont make any conclusions.

-----------------------------------------------------------------------------------------------------------------------------
EDIT: Okay i tryed and i failed epicly ;D
Here are some pics + the code i used






I wanted a wall here:

But no shit :)

Here is the code i used:

Code: [Select]
SetWorldBounds(-1138.9854,-1097.4169,50.5007,49.7763);
EPIC FAIL  ;D

« Last Edit: August 06, 2011, 08:35:15 pm by Zeke »
Agree Disagree Funny Winner Pwnt Informative Friendly Useful Optimistic Artistic Late Brain Donor

Quote
InstallHook(0x405AC0,(DWORD)CantFindFuckingAnim,0x405A95,
CantFindFuckingAnim_HookJmpCode,sizeof(CantFindFuckingAnim_HookJmpCode));
-------------------------------------------------
Quote
[00:41:12] <~Murdock> actually just transfering files
[00:41:16] <~Murdock> sounds, clientscripts etc
[00:42:05] <heekzs> what transfer method you uses
[00:43:03] <~Murdock> speed of light

Thomas

  • Guest
Re: World Boundaries
« Reply #7 on: August 06, 2011, 10:16:37 pm »
You won't again!

 :P if you use this program


World Bounderies
Cannot rate own posts


Zeke

  • Crazy Man
  • *****
  • Posts: 935
  • Country: bg
  • VC:MP and LU beta tester
    • View Profile
Re: World Boundaries
« Reply #8 on: August 06, 2011, 11:46:00 pm »
Ye i have this program but i dint test with it  ;D
Imma do it now tnx Thomas.

EDIT:
I made it guys it works perfect.
Tnx again Thomas for reminding me about this program it rly helped
« Last Edit: August 07, 2011, 02:16:05 am by Zeke »
Agree Disagree Funny Winner Pwnt Informative Friendly Useful Optimistic Artistic Late Brain Donor

Quote
InstallHook(0x405AC0,(DWORD)CantFindFuckingAnim,0x405A95,
CantFindFuckingAnim_HookJmpCode,sizeof(CantFindFuckingAnim_HookJmpCode));
-------------------------------------------------
Quote
[00:41:12] <~Murdock> actually just transfering files
[00:41:16] <~Murdock> sounds, clientscripts etc
[00:42:05] <heekzs> what transfer method you uses
[00:43:03] <~Murdock> speed of light

SpiralRock

  • Vice Underdog
  • Crazy Man
  • *
  • Posts: 366
    • View Profile
Re: World Boundaries
« Reply #9 on: September 27, 2011, 10:17:37 am »
Can world boundaries be changed in a single script again and again??
Suppose a server has many arenas... And when a arena is selected, world boundaries change according to it...
Agree Disagree Funny Winner Pwnt Informative Friendly Useful Optimistic Artistic Late Brain Donor


Charley

  • Vice Underdog
  • Crazy Man
  • *
  • *
  • Posts: 4749
  • Country: 00
    • View Profile
Re: World Boundaries
« Reply #10 on: September 27, 2011, 10:48:59 am »
In Squirrel they're defined in the config and cannot be edited once the server is up and running.

I think in PAWN whilst they're not defined in the config, you may only define them once when the server starts.
Agree Disagree Funny Winner Pwnt Informative Friendly Useful Optimistic Artistic Late Brain Donor

Writer of excessively long posts


morphine

  • Crazy Man
  • *****
  • Posts: 1908
  • Country: lt
    • View Profile
Re: World Boundaries
« Reply #11 on: September 27, 2011, 08:42:15 pm »
Are worldbounds in Squirrel also according to the xmax,xmin,ymax,ymin format?
Agree Disagree Funny Winner Pwnt Informative Friendly Useful Optimistic Artistic Late Brain Donor


Charley

  • Vice Underdog
  • Crazy Man
  • *
  • *
  • Posts: 4749
  • Country: 00
    • View Profile
Re: World Boundaries
« Reply #12 on: September 28, 2011, 12:05:54 am »
Are worldbounds in Squirrel also according to the xmax,xmin,ymax,ymin format?

Yes
Agree Disagree Funny Winner Pwnt Informative Friendly Useful Optimistic Artistic Late Brain Donor

Writer of excessively long posts