Bombstock

Air and ground spawning

5 posts in this topic

So, I know there is a way to have both ground and air respawning for players but I'm not sure how to do it. Does anyone have a suggestion about this or is it only possible to do one or the other?

Share this post


Link to post
Share on other sites

edit your config.cpp within @exileserver\addons\exile_server_config.pbo

Spoiler

///////////////////////////////////////////////////////////////////////
    // PLAYER SPAWN CONFIGURATION
    ///////////////////////////////////////////////////////////////////////
    class BambiSettings
    {
        /**
         * Loadout of new bambi players
         *
         * (They will always spawn with a bambi overall - you cannot
         * change the loadout uniform)
         */
        loadOut[] =
        {
            "ItemCompass",
            "ItemMap", // Because why not
            "Exile_Item_XM8",
            "ItemRadio",
            "Exile_Item_PlasticBottleFreshWater"
        };

        /**
         * Enables or disables parachute spawning.
         *
         * 1 = On
         * 0 = Off
         */
        parachuteSpawning = 1;

        /**
         * Enables or disables halo jumping. Only applies
         * if parachute spawning is enabled.
         *
         * Remember that if you enable halo jump, it is adviced
         * to adjust the parachuteDropHeight to something around
         * 1km or so.
         *
         * 1 = On
         * 0 = Off
         */
        haloJump = 1;

        /**
         * Parachute drop height in meters.
         */
        parachuteDropHeight = 1000;

        /**
         * Number of minutes where a fresh spawned player remains in the
         * bambi state. It will end the bambi state after this timeout
         * expired or when they pick up their first weapon. Whatever
         * happens first.
         */
        protectionDuration = 5;

        /**
         * Radius of spawn zones around the center of spawn zone markers.
         */
        spawnZoneRadius = 500;

        /**
         * These vehicles spawn on server restart close to spawn zones.
         * They are non-persistent and will despawn on server restart.
         * Basically they are just used to get away from the spawn zone
         * faster.
         *
         * {Number of vehicles *per* spawn zone, vehicle class name}
         */
        spawnZoneVehicles[] =
        {
            {5, "Exile_Bike_OldBike"},
            {5, "Exile_Bike_MountainBike"}
        };
    };


 

 

 

Share this post


Link to post
Share on other sites
Advertisement

I don't think you understood what I was asking. I'm looking to have an option for players to choose either a ground spawn or halo spawn option. I'm not looking to have only one option for them. I already know how to configure the file so they would spawn on the ground or in the air but I looking to implement both. I want to provide them with both options.

Share this post


Link to post
Share on other sites

I understand Now, like Halvhjearne's  script for epoch, on the spawn screen where you choose a location or select random you also want them to be able to choose from halo or ground. 

Settings are related to ExileServer_object_player_createBambi.sqf

so i would start there, but how to impliment that into a selection menu, my guess would be a GUI window to pop up  over the map selection. then if they click halo it executes 1 thing, and ground executes another.

being that its a server override file, I am not sure how a person can do this.

It pulls info from the serverside config.cpp

Spoiler

if ((getNumber(configFile >> "CfgSettings" >> "BambiSettings" >> "parachuteSpawning")) isEqualTo 1) then
{
	_position set [2, getNumber(configFile >> "CfgSettings" >> "BambiSettings" >> "parachuteDropHeight")]; 
	if ((getNumber(configFile >> "CfgSettings" >> "BambiSettings" >> "haloJump")) isEqualTo 1) then
	{
		_bambiPlayer addBackpackGlobal "B_Parachute";
		_bambiPlayer setPosATL _position;
		_spawnType = 2;
	}
	else 
	{
		_parachuteObject = createVehicle ["Steerable_Parachute_F", _position, [], 0, "CAN_COLLIDE"];
		_parachuteObject setDir _direction;
		_parachuteObject setPosATL _position;
		_parachuteObject enableSimulationGlobal true;
		_parachuteNetID = netId _parachuteObject;
		_spawnType = 1;
	};
}

 

so you would almost need to add a new setting in config.cpp

then add to that server override.

Edited by tinboye

Share this post


Link to post
Share on other sites

I already have an overide for that particular sqf for my respect based loadouts. Which works of course. I think I can just alter it so I can have both options. I appreciate the point in the right direction.

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.