We have redirected you to our new domain: store.godotengine.org. Please update your bookmarks!

Description
Changelog
Reviews

GDAnti-Cheats

This is my version of anti-cheats adapted for Godot Engine as plugin, this plugin makes it difficult to use cheats locally.

Godot Engine 4.3 ToolHack Copyrights License

Table of contents

Description

This plugin was created to make it more difficult to manipulate values ​​in programs or video games, such as unintentionally increasing your character's stats.

Example

example Use case image

Supported

  • IntStream Integer values
  • BoolStream Boolean Values
  • FloatStream Float Values
  • StringStream String Values
  • VariantStream General purposes values

Others

  • TrackValue Can be used to monitor the list of changes similar to TrackerStream Scene.
  • TrackNet Helper class for check connection to complement the review of interceptions.

Example

# my_logic_file.gd
## variable you want to protect
var secure_cash_wallet : IntStream = IntStream.new()

func add_cash(value : int) -> void:
    secure_cash_wallet.value += value

func get_total_cash() -> int:
    return secure_cash_wallet.value

Issues

Any bug or feature request you can make a Issue.

  • Sometimes values ​​update too quickly as would happen with high scores, although I have optimized it to support updates of many variables, you may experience some issues with the flush technique at some point, for that you can increase flush rate.

Flush rate updating

Update flush single var

#demo_a.gd

##Flush single var
var my_secure_var : IntStream = IntStream.new()
func _ready() -> void:
    # If used in physics process, default 60 fps, in ≈5 seconds start flush the pointers data
    my_secure_var.flush_rate = 60 * 5 #(default 30)

Update flush for all

#demo_b.gd

##Flush global update for all use singleton
func _ready() -> void:
    # If used in physics process, default 60 fps, in ≈5 seconds start flush the pointers data
    GDAntiCheats.FLUSH_RATE = 60 * 5 #(default 30)

Also you can update the buffer if necessary

Update buffer single var

#demo_c.gd

##Buffer single var
var my_secure_var : IntStream = IntStream.new()
func _ready() -> void:
    my_secure_var.buffer_size = 200 #(default 10)

Update buffer for all

#demo_d.gd

##Buffer global update for all use singleton
func _ready() -> void:
    GDAntiCheats.BUFFER_SIZE = 200 #(default 10)

TrackValue

This object is designed for monitoring, this technique involves progressively reviewing any abnormal values ​​you wish to verify, such as adding an amount of health that no element in the universe allows or a position change by a disproportionate distance.

There is also have function for create a copy at a new memory location.

NOTE: The tracking method or value to be monitored varies depending on the needs of you project. (See the Trackvalue scene in example folder)

License

Copyrights (c) CodeNameTwister. See LICENSE.md for details.

Changelog for version 0.2.2.1

No changelog provided for this version.

Reviews (0)

Godot Anti Cheats has no reviews yet.

Login to write a review.