mirror of
https://github.com/jmarshall23/CnC_Remastered_Collection.git
synced 2026-08-12 08:00:55 +02:00
Soviets will now have paratroopers at the start of soviet mission 1, modified lua GiveSpecialWeapon and super code to allow perputual usage of script granted super weapons even if the prereq requirements aren't met.
This commit is contained in:
@@ -70,6 +70,7 @@ SuperClass::SuperClass(int recharge, bool powered, VoxType charging, VoxType rea
|
||||
IsPresent(false),
|
||||
IsOneTime(false),
|
||||
IsReady(false),
|
||||
IsNoPreq(false),
|
||||
Control(0),
|
||||
OldStage(-1),
|
||||
VoxRecharge(ready),
|
||||
@@ -139,11 +140,12 @@ bool SuperClass::Suspend(bool on)
|
||||
* HISTORY: *
|
||||
* 07/28/1995 JLB : Created. *
|
||||
*=============================================================================================*/
|
||||
bool SuperClass::Enable(bool onetime, bool player, bool quiet)
|
||||
bool SuperClass::Enable(bool onetime, bool player, bool quiet, bool skipPreReq)
|
||||
{
|
||||
if (!IsPresent) {
|
||||
IsPresent = true;
|
||||
IsOneTime = onetime;
|
||||
IsNoPreq = skipPreReq;
|
||||
bool retval = Recharge(player && !quiet);
|
||||
if (quiet) Suspend(true);
|
||||
return(retval);
|
||||
@@ -170,7 +172,7 @@ bool SuperClass::Enable(bool onetime, bool player, bool quiet)
|
||||
*=============================================================================================*/
|
||||
bool SuperClass::Remove(void)
|
||||
{
|
||||
if (IsPresent && !IsOneTime) {
|
||||
if (IsPresent && !IsOneTime && !IsNoPreq) {
|
||||
IsReady = false;
|
||||
IsPresent = false;
|
||||
return(true);
|
||||
|
||||
Reference in New Issue
Block a user