Jump to content

Home

SAGA Gametype


ASk

Recommended Posts

It seems that Raven has a whole gametype coded but not used in the game...and it seems that it's playable. The only problem is that the map needs to be specifically designed and also must have an info file that defines the objectives (as i see now, saga is like objectives maps in RTCW)

 

the required entities are:

 

info_player_imperial - for imperial team start

info_player_rebel - for rebel team start

 

info_saga_objective - the objective

parameters for info_saga_objective:

side: 1,2 - 1 is imperial objective, 2 is rebel objective

objective: 1-9 - the number of the objective to complete on this entity's activation.

 

also there's code for the info file reading:

trap_FS_Read(saga_info, len, f);

saga_valid = 1;

if (GetValueGroup(saga_info, "Rebel", objectives))
{
	if (GetPairedValue(objectives, "RequiredObjectives", goalreq))
	{
		rebel_goals_required = atoi(goalreq);
	}
	if (GetPairedValue(objectives, "attackers", goalreq))
	{
		rebel_attackers = atoi(goalreq);
	}
}
if (GetValueGroup(saga_info, "Imperial", objectives))
{
	if (GetPairedValue(objectives, "RequiredObjectives", goalreq))
	{
		imperial_goals_required = atoi(goalreq);
	}
	if (GetPairedValue(objectives, "attackers", goalreq))
	{
		imperial_attackers = atoi(goalreq);
	}
}

 

if anyone manages to make the required files from this info...the SAGA gametype might just be possible (its g_gametype 6 btw)

Link to comment
Share on other sites

why don't you try to be this guy !

the guy who creates this info file ??

from what i can remember when i was mapping for halflife the infofiles are plain text ....so it shouldn't be really hard to add this to the info file....

 

 

off topic : ASk have you any clues about the questions i asked in my other topic 'model drawing' ???

Link to comment
Share on other sites

From what that piece of code tells me the file should look like this:

 

Rebel {
RequiredObjectives 2
attackers 0
}

Imperial {
RequiredObjectives 2
attackers 1
}

 

RequiredObjectives ... number of accomplished objectives to win the game

attackers ... either in Rebel or Imperial this has to be 1, 1 = attacking team, 0 = defending team

 

the file has to be placed in the maps-directory like this: MAPNAME.saga, normal text-file :D

 

Hope this helps - by the way: I didn't test it, so it may be possible that what I write here is totally wrong ;)

Link to comment
Share on other sites

I found some new variable things.

 

SAGATEAM_IMPERIAL (equal to TEAM_RED)

SAGATEAM_REBEL (equal to TEAM_BLUE)

GT_SAGA

rebel_attackers

imperial_attackers

SP_info_player_imperial

SP_info_player_rebel

SP_info_saga_objective

WPFLAG_SAGA_IMPERIALOBJ

WPFLAG_SAGA_REBELOBJ

EV_SAGA_ROUNDOVER

EV_SAGA_OBJECTIVECOMPLETE

 

Hope this helps.

Link to comment
Share on other sites

  • 2 weeks later...

i got lazy :)

NWN saps my free time now, so this mod is frozen.

i still request a very simple map with the entities mentioned above.

 

the config file does not work though...that's the main problem

Link to comment
Share on other sites

  • 2 weeks later...

Look in the first post:

 

info_player_imperial - for imperial team start

info_player_rebel - for rebel team start

 

info_saga_objective - the objective

parameters for info_saga_objective:

side: 1,2 - 1 is imperial objective, 2 is rebel objective

objective: 1-9 - the number of the objective to complete on this entity's activation.

 

The problem is, someone needs to write an ini for this map. And I don't think anyone has an idea how it is arranged.

Link to comment
Share on other sites

  • 1 month later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...