Skip to content

Commit

Permalink
Merge branch 'no-std' of https://github.com/hollacs/oo_amxx into no-std
Browse files Browse the repository at this point in the history
  • Loading branch information
hollacs committed Jun 28, 2024
2 parents f840781 + 72c392e commit 3943e5d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
6 changes: 3 additions & 3 deletions HOOK.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# TEST
# OO Hook
In the last commit version, now you can hook all the oo methods that was created by plugin

**Please note that this is still under testing and I'll release a new version when the testing is finished.**
**Please note that this is still under testing**

Example: (we're going to hook some methods in [oo_animal.sma](https://github.com/hollacs/oo_amxx/blob/no-std/scripting/oo_animal.sma))
```sourcepawn
Expand Down Expand Up @@ -78,4 +78,4 @@ public OnAnimalDtor()
server_print("OnAnimalDtor()");
}
```
```
15 changes: 12 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ Idea drafted with Hon Fai (aka BB.O.)<br>
Author: Hon Fai & holla


Thanks to [OKAPI module](https://github.com/Arkshine/Okapi/tree/master) authors, I referenced their code to implement using variable arguments in MF_ExecuteForward() and MF_RegisterSpForward()
Thanks to [OKAPI module](https://github.com/Arkshine/Okapi/tree/master) authors, I referenced their code to implement to use variable arguments in [MF_ExecuteForward()](https://github.com/hollacs/oo_amxx/blob/29a2387fe127b3618ecb5eac269289815b2046b9/src/oo_forward.cpp#L249) and [MF_RegisterSpForward()](https://github.com/hollacs/oo_amxx/blob/29a2387fe127b3618ecb5eac269289815b2046b9/src/oo_forward.cpp#L67)

## Build
To build this project, you need to install [ambuild](https://wiki.alliedmods.net/AMBuild)


Expand All @@ -27,10 +28,18 @@ Build with following command:
ambuild
```


---

Usage:
## Experimental
Just added a new oo_hook features in the last commit, but it's a experimental feature that is still under testing.

You can download the latest build that was auto generated by GitHub workflows in [Actions page](https://github.com/hollacs/oo_amxx/actions)
<br>
The binary files are in the <ins>Artifacts</ins> section.

See [HOOK.md](https://github.com/hollacs/oo_amxx/blob/no-std/HOOK.md) for more info.

## Usage
```sourcepawn
#include <amxmodx>
#include <oo>
Expand Down

0 comments on commit 3943e5d

Please sign in to comment.