Comments (10)
Not that easy as you guys think. To implement it correctly with preserving current behavior we need think deeper than the direct solution.
from reapi.
What functions do you need? We maked a set of useful rg_* natives for most things. They replace direct usage of the ExecuteHam(B) functions.
from reapi.
Sad.. I thought we can completely replace ham module. At least make it for Ham_CS_RoundRespawn, Ham_TakeDamage and Ham_CS_Player_ResetMaxSpeed. I'm curious why dont you make that ExacuteHam similar native. It was useful by the way. Also it would be great if we can hook fire_bullet and fire_bullet3 too.
from reapi.
It's not easy to implement and mostly will be unused. The FireBullets functions has a many arguments and will be quite slow. I think they can be replaced by another functions.
from reapi.
Ham_think, Ham_Weapon_RetireWeapon, Ham_Item_Kill, Ham_RemovePlayerItem, Ham_AddPlayerItem, Ham_Item_AttachToPlayer, Ham_Spawn
from reapi.
I also like the idea of ExecuteHamB function:)
We could add ammo like ham.
ExecuteReHook(RG_CBasePlayer_GiveAmmo, i_Client, i_Amount, sz_Name, i_MaxCarry)
Ham Suggestions:
Ham_Weapon_PrimaryAttack, Ham_Weapon_SecondaryAttack, Ham_Item_Deploy, Ham_Item_AddToPlayer, Ham_Weapon_Reload, Ham_Weapon_WeaponIdle, Ham_Think, Ham_Touch.
But it would be nice with these too:
FM_PlaybackEvent(flags, invoker, eventid, Float:delay, Float:origin[3], Float:angles[3], Float:fparam1, Float:fparam2, iParam1, iParam2, bParam1, bParam2), // RG_PlaybackEvent
FM_SetModel(i_Ent, sz_Model[]), // RG_SetModel
FM_PrecacheEvent(i_Type, const sz_Name[]), // RG_PrecacheEvent
Event_RoundNew(), // RG_RoundNew
Event_RoundStart(), // RG_RoundStart
Event_StatusValue(i_Client), // RG_StatusValue
from reapi.
You can add Ham_CS_Player_ResetMaxSpeed and Ham_Item_Deploy?
from reapi.
Ham_Item_Deploy?
from reapi.
Is there any progress with this request?
I'm trying to make a fake smoke and I need to call RG_ThrowSmokeGrenade.
This can be done with okapi.
new m_usCreateSmoke = get_pdata_int(gEntity, m_usEvent)
new Entity = okapi_call(CGrenade_ShootSmokeGrenade, pev(gEntity, pev_owner), gOrigin, Float:{0.0, 0.0, 0.0}, 0, m_usCreateSmoke)
But, it would be nice if reapi could do such calls.
cheers
from reapi.
@gladiuskzcl
Use this: https://dev-cs.ru/threads/222/page-7#post-74228
from reapi.
Related Issues (20)
- SetHookChainArg - Missing ATYPE_VECTOR HOT 1
- m_bInCareerGame & m_LastHitGroup
- SetHookChainArg with ATYPE_VECTOR error HOT 2
- rg_drop_item HOT 5
- [Request] SG_TumbleThink hook? HOT 1
- Fastcup Reapi 5.22.0.256 HOT 2
- New version HOT 1
- RG_CBasePlayer_GiveNamedItem cannot be hooked HOT 6
- Add `WI_SLOT` for `rg_get_weapon_info`
- PM_Jump HOT 9
- SetHookChainArg not handling vectors HOT 2
- Add a hook to PM_PlayerTrace
- Why is RH_SV_AllowPhysent engine hook removed ? HOT 2
- Is it possible to add hooks for pfnMessageBegin, pfnMessageEnd, etc... HOT 8
- rg_transfer_c4() bug HOT 3
- [Question] Setting custom ammo for weapon with rg_add_ammo_registry
- Major version mismatch on latest release HOT 1
- hook RG_CBasePlayer_TakeDamage wrong bitsDamageType? HOT 2
- Implementation error
- Block silencer
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from reapi.