added cap_message to CP_ enum
This commit is contained in:
parent
1cc60fc9ad
commit
567ab19fe5
@ -98,7 +98,7 @@ struct pd_dcp {
|
|||||||
int points_for_team;
|
int points_for_team;
|
||||||
float funk_98; // always 1.0
|
float funk_98; // always 1.0
|
||||||
float cap_time;
|
float cap_time;
|
||||||
char win_string[256]; // 100 MAP_PLAYER_CAP , %p player , %n pointname , %t teamname
|
char cap_message[256]; // 100 MAP_PLAYER_CAP , %p player , %n pointname , %t teamname
|
||||||
int iunk_164;
|
int iunk_164;
|
||||||
int iunk_165;
|
int iunk_165;
|
||||||
char target_allies[256]; // 166
|
char target_allies[256]; // 166
|
||||||
@ -322,6 +322,7 @@ enum CP_VALUE {
|
|||||||
|
|
||||||
// strings
|
// strings
|
||||||
CP_name,
|
CP_name,
|
||||||
|
CP_cap_message,
|
||||||
CP_reset_capsound,
|
CP_reset_capsound,
|
||||||
CP_allies_capsound,
|
CP_allies_capsound,
|
||||||
CP_axis_capsound,
|
CP_axis_capsound,
|
||||||
|
@ -513,6 +513,9 @@ static cell AMX_NATIVE_CALL objective_set_data(AMX *amx, cell *params){ // index
|
|||||||
case CP_name :
|
case CP_name :
|
||||||
mObjects.obj[index].pEdict->v.netname = MAKE_STRING(szValue);
|
mObjects.obj[index].pEdict->v.netname = MAKE_STRING(szValue);
|
||||||
return 1;
|
return 1;
|
||||||
|
case CP_cap_message :
|
||||||
|
strcpy(GET_CP_PD(mObjects.obj[index].pEdict).cap_message,szValue);
|
||||||
|
return 1;
|
||||||
case CP_reset_capsound :
|
case CP_reset_capsound :
|
||||||
mObjects.obj[index].pEdict->v.noise = MAKE_STRING(szValue);
|
mObjects.obj[index].pEdict->v.noise = MAKE_STRING(szValue);
|
||||||
return 1;
|
return 1;
|
||||||
@ -595,6 +598,11 @@ static cell AMX_NATIVE_CALL objective_get_data(AMX *amx, cell *params){ // flagi
|
|||||||
MF_SetAmxString(amx,params[3],STRING(mObjects.obj[index].pEdict->v.netname),len);
|
MF_SetAmxString(amx,params[3],STRING(mObjects.obj[index].pEdict->v.netname),len);
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
|
case CP_cap_message :
|
||||||
|
if ( len ){
|
||||||
|
MF_SetAmxString(amx,params[3],GET_CP_PD(mObjects.obj[index].pEdict).cap_message,len);
|
||||||
|
}
|
||||||
|
return 1;
|
||||||
case CP_reset_capsound :
|
case CP_reset_capsound :
|
||||||
if ( len ){
|
if ( len ){
|
||||||
MF_SetAmxString(amx,params[3],STRING(mObjects.obj[index].pEdict->v.noise),len);
|
MF_SetAmxString(amx,params[3],STRING(mObjects.obj[index].pEdict->v.noise),len);
|
||||||
|
Loading…
Reference in New Issue
Block a user