EOSERV Forum > EOSERV > map storm release updated12/28/10
Topic is locked.
Page: << 1 2 3 >>
map storm release updated12/28/10
Author Message
Post #59556 Re: map storm release updated12/28/10
toad posted: (22nd Jan 2011 08:53 am)

nope.


Looking at your error I think it in world.cpp check all this stuff

in world.cpp find


void world_timed_save(void *world_void)
{
    World *world = static_cast<World *>(world_void);

    UTIL_PTR_VECTOR_FOREACH(world->characters, Character, character)
    {
        //character->Refresh();
        character->Save();
    }

    world->guildmanager->SaveAll();
}


add this here


void world_effect(void *world_void)// to do set up quake timers
{
  World *world = static_cast<World *>(world_void);

 UTIL_PTR_VECTOR_FOREACH(world->maps, Map, map)
   {

  int p = util::rand(0, 1); int p1 = util::rand(0, 2);
  int p2 = util::rand(3, 4); int p3 = util::rand(6, 8);
 if(map->effect == 3)
{
    map->Effect(1, p);
        }
  if(map->effect == 4)
{
    map->Effect(1, p1);
        }
  if(map->effect == 5)
{
    map->Effect(1, p2);
        }
if(map->effect == 6)
{
    map->Effect(1, p3);
        }
if(map->effect == 7)
{
    map->Storm();
        }
    }
}


sroll down intell you find the timers look for this timer


event = new TimeEvent(world_recover, this, 90.0, Timer::FOREVER);
this->timer.Register(event);
event->Release();


then add this one right here below it!


  event = new TimeEvent(world_effect, this, static_cast<double>(this->config["MapStorm"]), Timer::FOREVER);
    this->timer.Register(event);
    event->Release();


14 years, 14 weeks ago
Post #61148 Re: map storm release updated12/28/10

thanks, fixed but how do i know which map or make the map have the storms?

14 years, 13 weeks ago
Post #61876 Re: map storm release updated12/28/10
toad posted: (6th Feb 2011 07:42 am)

thanks, fixed but how do i know which map or make the map have the storms?


 Its done in your map editor I use eomapedit alpha 5 in the sound/other tab number 7 for storms!
14 years, 12 weeks ago
Page: << 1 2 3 >>
Topic is locked.
EOSERV Forum > EOSERV > map storm release updated12/28/10