Raised This Month: $23 Target: $400
 5% 

VSH2 Grunt & Brute Bosses


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Sajt
Member
Join Date: Apr 2023
Location: Hungary
Old 04-16-2024 , 14:11   VSH2 Grunt & Brute Bosses
Reply With Quote #1

Hello!
How can these errors be corrected because I was able to solve them.

Mistakes:
plugin.sp(164) : error 017: undefined symbol "g_vsh2_cvars"
plugin.sp(165) : error 017: undefined symbol "g_vsh2_cvars"
plugin.sp(166) : error 017: undefined symbol "g_vsh2_cvars"
plugin.sp(167) : error 017: undefined symbol "g_iGruntID"
plugin.sp(16 : error 017: undefined symbol "g_iBruteID"
plugin.sp(234) : error 017: undefined symbol "HookSound"
plugin.sp(239) : error 017: undefined symbol "g_iGruntID"
plugin.sp(239) : error 130: cannot coerce functions to values
plugin.sp(243) : error 017: undefined symbol "g_iBruteID"
plugin.sp(243) : error 130: cannot coerce functions to values
plugin.sp(292) : error 017: undefined symbol "g_iGruntID"
plugin.sp(293) : error 017: undefined symbol "g_iBruteID"
plugin.sp(320) : error 017: undefined symbol "g_vsh2_cvars"
plugin.sp(340) : error 017: undefined symbol "g_amn_data"
plugin.sp(340) : warning 215: expression has no effect
plugin.sp(340) : error 001: expected token: ";", but found "]"
plugin.sp(340) : error 029: invalid expression, assumed zero
plugin.sp(340) : fatal error 190: too many error messages on one line

And here is the script that can help.
Attached Files
File Type: sp Get Plugin or Get Source (vsh2boss_grunt_brute.sp - 45 views - 21.3 KB)
Sajt is offline
Sajt
Member
Join Date: Apr 2023
Location: Hungary
Old 04-17-2024 , 13:47   VSH2 Grunt & Brute Bosses
Reply With Quote #2

Hello! How can this be fixed?

public void Amnesia_OnBossThink(const VSH2Player player) {
int client = player.index;
if( !IsPlayerAlive(client) || !IsGatherer(player) )
return;

player.GlowThink(0.1);
player.SpeedThink(340.0);

if( OnlyScoutsLeft() )
player.SetPropFloat("flRAGE", player.GetPropFloat("flRAGE") + amnesia_boss.scout_rage_gen.FloatValue);

player.WeighDownThink(2.0, 0.1);

float vecShoveDir[3]; GetEntPropVector(client, Prop_Data, "m_vecAbsVelocity", vecShoveDir);
if( vecShoveDir[0] != 0.0 && vecShoveDir[1] != 0.0 ) {
VSH2Player[] reds = new VSH2Player[MaxClients];
int count = player.GetPlayersInRange(reds, 250.0, true);
for( int i; i<count; i++ ) {
int me = reds[i].index;
if( GetClientTeam(me)==GetClientTeam(client) )
continue;

float entitypos[3]; GetEntPropVector(client, Prop_Data, "m_vecAbsOrigin", entitypos);
float targetpos[3]; GetEntPropVector(me, Prop_Data, "m_vecAbsOrigin", targetpos);
float vecTargetDir[3]; SubtractVectors(entitypos, targetpos, vecTargetDir);
NormalizeVector(vecShoveDir, vecShoveDir);
NormalizeVector(vecTargetDir, vecTargetDir);
if( GetVectorDotProduct(vecShoveDir, vecTargetDir) <= 0 ) {
float curr_time = GetGameTime();
if( g_amn_data[me].m_flTerrorTime <= curr_time ) {
EmitSoundToClient(me, TerrorSound);
g_amn_data[me].m_flTerrorTime = curr_time + 5.0;
}
}
}
}

/// hud code
SetHudTextParams(-1.0, 0.77, 1000.0, 255, 255, 0, 0);
Handle hud = VSH2GameMode.GetHUDHandle();
//float jmp = player.GetPropFloat("flCharge");
float rage = player.GetPropFloat("flRAGE");
if( rage >= 100.0 ) {
ShowSyncHudText(client, hud, "Rage: FULL - Press E to activate");
} else {
ShowSyncHudText(client, hud, "Rage: %0.1f", rage);
}
}


plugin.sp(339) : error 017: undefined symbol "g_amn_data"
plugin.sp(339) : warning 215: expression has no effect
plugin.sp(339) : error 001: expected token: ";", but found "]"
plugin.sp(339) : error 029: invalid expression, assumed zero
plugin.sp(339) : fatal error 190: too many error messages on one line
Sajt is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:30.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode