Forbidden check fixes

This commit is contained in:
Jackz 2023-10-09 20:58:21 -05:00
parent a00922586a
commit 957ae488b8
No known key found for this signature in database
GPG key ID: E0BBD94CF657F603
6 changed files with 496 additions and 283 deletions

View file

@ -225,6 +225,7 @@ enum struct WallBuilderData {
DispatchSpawn(entity);
TeleportEntity(entity, this.origin, this.angles, NULL_VECTOR);
this.entity = entity;
SetEntProp(entity, Prop_Send, "m_nSolidType", 2);
return entity;
}
@ -247,7 +248,7 @@ WallBuilderData WallBuilder[MAXPLAYERS+1];
// TODO: Stacker, copy tool, new command?
public Action Command_MakeWall(int client, int args) {
if(WallBuilder[client].IsActive()) {
ReplyToCommand(client, "\x04[Hats]\x01 You are already editing/building, either finish with \x05/wall build\x01 or cancel with \x04/wall cancel\x01");
ReplyToCommand(client, "\x04[Hats]\x01 You are currently editing an entity. Finish editing your current entity with with \x05/edit done\x01 or cancel with \x04/edit cancel\x01");
} else {
WallBuilder[client].Reset();
if(args > 0) {