The game is crashing me for my script can you help me?
-
The part of my script that crashes the game is this:
aol_init()
{
level.onplayerkilled = ::aol_onplayerkilled;level.givecustomloadout = ::aol_givecustomloadout; level.aol_perkKillReq = []; level.aol_perkKillPerk = []; //Kills required to get perks level.aol_perkKillReq[0] = 1; level.aol_perkKillReq[1] = 3; level.aol_perkKillReq[2] = 5; level.aol_perkKillReq[3] = 7; //Perks that you get for kills level.aol_perkKillPerk[0] = "specialty_scavenger"; level.aol_perkKillPerk[1] = "specialty_fastreload"; level.aol_perkKillPerk[2] = "specialty_bulletaccuracy"; level.aol_perkKillPerk[3] = "specialty_bulletflinch"; maps/mp/gametypes/_wager::addpowerup( level.aol_perkKillPerk[0], "perk", "Scavenger", "perk_scavenger" ); maps/mp/gametypes/_wager::addpowerup( level.aol_perkKillPerk[1], "perk", "Faster Reload", "perk_fast_hands" ); maps/mp/gametypes/_wager::addpowerup( level.aol_perkKillPerk[2], "perk", "Steady Aim", "perk_dexterity" ); maps/mp/gametypes/_wager::addpowerup( level.aol_perkKillPerk[3], "perk", "Specialist Perks", "perk_ghost" );
}
aol_givecustomloadout()
{
level.loadoutkillstreaksenabled = false; self.aol_killStreak = 0; if(self.aol_perkStreak != 0) { self.aol_perkStreak = 0; self maps/mp/gametypes/_wager::clearpowerups(); } self clearPerks(); self takeAllWeapons(); self setactionslot( 1, "" ); self setactionslot( 2, "" ); self setactionslot( 3, "" ); self setactionslot( 4, "" );
}
aol_onplayerkilled( einflictor, attacker, idamage, smeansofdeath, sweapon, vdir, shitloc, psoffsettime, deathanimduration )
{
if(self != attacker) { //attacker maps/mp/gametypes/_globallogic_score::givepointstowin( level.teamscoreperkill ); //self maps/mp/gametypes/_globallogic_score::givepointstowin( level.teamscoreperdeath * -1 ); if(getDvar("g_gametype") == "dm") { attacker maps/mp/gametypes/_globallogic_score::givepointstowin( level.teamscoreperkill ); self maps/mp/gametypes/_globallogic_score::givepointstowin( level.teamscoreperdeath * -1 ); } else if(getDvar("g_gametype") == "tdm") { attacker maps/mp/gametypes/_globallogic_score::giveteamscoreforobjective( attacker.team, level.teamscoreperkill ); self maps/mp/gametypes/_globallogic_score::giveteamscoreforobjective( self.team, level.teamscoreperdeath * -1 ); self maps/mp/gametypes/_globallogic_score::giveteamscoreforobjective( self.team, level.teamscorepersuicide * -1 ); } attacker.aol_killStreak += 1; if(attacker.aol_killStreak == level.aol_perkKillReq[0] || attacker.aol_killStreak == level.aol_perkKillReq[1] || attacker.aol_killStreak == level.aol_perkKillReq[2]) { attacker maps/mp/gametypes/_wager::givepowerup( level.poweruplist[attacker.aol_perkStreak] ); attacker.aol_perkStreak += 1; } else if(attacker.aol_killStreak == level.aol_perkKillReq[3]) { attacker maps/mp/gametypes/_wager::givepowerup( level.poweruplist[attacker.aol_perkStreak] ); attacker aol_specialistPerks(); attacker.aol_perkStreak += 1; } }
}
The script normally works, but the error gives me when I commit suicide, but not with weapons or grenades, but, an example throwing me for the water from the hijacked map or pulling me from the aircraft carrier in the carrier map, and well so in all the maps in which you can commit suicide in this way, then I do not know what to do or what function to implement to see if my problem is solved or look for an alternative to solve this error.
-
I just came up with something and if someone asked me to help I would appreciate it a lot, to do as a teleportation in such a way that when the player is off the map before falling into the void, they teleport him on the map. I do not know if this can be done but it would be a way to solve my error, but I think it deserves a lot of work if someone has not created it before because doing this on each screen is super complicated good complicated and it takes a long time
-
Yo bro, you need to post these in the right section on the forum. This is not the right section. This is for releases or resources in which you have not provided.
-
// Moved