Jump to content
Sign in to follow this  
BEAKSBY

How to Modify Predefined Params Templates?

Recommended Posts

I want to use the Predefined Params Template for my game, but "\a3\functions_f\Params\paramRespawnTickets.hpp" calls BIS_fnc_paramRespawnTickets.sqf which in turn calls BIS_fnc_bleedTickets and I want it to call my own BEAKS_fnc_BEAKSbleedTickets instead.

How can I the Modify Predefined Params Templates to do so?

I'm not sure how to set this up in the descrition.ext...

description.ext

class Params
{
#include "\a3\functions_f\Params\paramRespawnTickets.hpp"
#define TICKETS_MIN		100
#define TICKETS_MAX		1100
#define TICKETS_DEFAULT		150
};

BIS_fnc_paramRespawnTickets.sqf

/*
Author: Karel Moricky

Description:
Set side respawn tickets

Parameter(s):
NUMBER - respawn tickets

Returns:
BOOL
*/

private ["_tickets"];
_tickets = [_this,0,500,[0]] call bis_fnc_param;
if (_tickets >= 0) then {
{
	if (playableslotsnumber _x > 0) then {
		[_x,_tickets] call BEAKS_fnc_BEAKSbleedTickets;
	};
} foreach [east,west,resistance];
};
true

Edited by BEAKSBY

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×