Giter VIP home page Giter VIP logo

Comments (10)

afwn90cj93201nixr2e1re avatar afwn90cj93201nixr2e1re commented on July 30, 2024 2

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.

theAsmodai avatar theAsmodai commented on July 30, 2024

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.

lespaul64 avatar lespaul64 commented on July 30, 2024

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.

theAsmodai avatar theAsmodai commented on July 30, 2024

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.

souvikdas95 avatar souvikdas95 commented on July 30, 2024

Ham_think, Ham_Weapon_RetireWeapon, Ham_Item_Kill, Ham_RemovePlayerItem, Ham_AddPlayerItem, Ham_Item_AttachToPlayer, Ham_Spawn

from reapi.

Skumek avatar Skumek commented on July 30, 2024

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.

ivanmaxlogiudice avatar ivanmaxlogiudice commented on July 30, 2024

You can add Ham_CS_Player_ResetMaxSpeed and Ham_Item_Deploy?

from reapi.

ish12321 avatar ish12321 commented on July 30, 2024

Ham_Item_Deploy?

from reapi.

ddelbasto avatar ddelbasto commented on July 30, 2024

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.

RauliTop avatar RauliTop commented on July 30, 2024

@gladiuskzcl
Use this: https://dev-cs.ru/threads/222/page-7#post-74228

from reapi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.