AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Code Snippets/Tutorials (https://forums.alliedmods.net/forumdisplay.php?f=83)
-   -   CS Modding Kit (https://forums.alliedmods.net/showthread.php?t=343386)

Hedgehog Fog 07-19-2023 11:20

CS Modding Kit
 

About
CS Modding Kit is a repo with powerful solutions for Counter-Strike modding that can be used to create complex mods for a short time with flexible solutions using a unified development approach. I continue working on this repository and plan many new solutions in the future as well as move my mods to this solution to create examples and a good code base.
Plans
For now, I have many mods with awesome implementations I want to move to separate APIs and publish them to the modding kit, as well as publish custom entities everyone can use in their mods.
I hope that someone may be interested in this project and he will also offer his own solution for this repository.
APIs
  • Custom Entities API - allows to register of new entities that can be added on a map or created from code, it also supports lifecycle.
  • Custom Weapons API - allows to implement new weapons with completely custom logic and HUD.
  • Rounds API - unified approach for controlling rounds using a life cycle pattern.
  • Player Camera API - simple API for third-person cameras with flexible configuration.
  • Player Model API - simple API for changing player models with custom model paths support.
  • Player View Range API - an interesting approach to limit player view range, which may be useful for some mods.

Projects (that use these APIs)
Media
Some videos of mods I made using these tools.







bigdaddy424 07-19-2023 18:23

Re: CS Modding Kit
 
you forgot to mention that a couple apis use reapi which doesnt come by default on amxx

do you think this is an overkill?
https://github.com/Hedgefog/cs-moddi...ds.sma#L68-L96
have you though of other ways to do accomplish this or a workaround

1xAero 07-20-2023 04:43

Re: CS Modding Kit
 
Quote:

Originally Posted by bigdaddy424 (Post 2807426)
you forgot to mention that a couple apis use reapi which doesnt come by default on amxx

do you think this is an overkill?
https://github.com/Hedgefog/cs-moddi...ds.sma#L68-L96
have you though of other ways to do accomplish this or a workaround

Just simple timer calc. Nothing serious is executing here, so it's safe.

Hedgehog Fog 07-20-2023 09:21

Re: CS Modding Kit
 
Quote:

Originally Posted by bigdaddy424 (Post 2807426)
you forgot to mention that a couple apis use reapi which doesnt come by default on amxx

Yes, but sadly it's not possible to do with default modules and this is the only way to reset multidamage for weapons and end rounds.

Quote:

Originally Posted by bigdaddy424 (Post 2807426)
do you think this is an overkill?
https://github.com/Hedgefog/cs-moddi...ds.sma#L68-L96
have you though of other ways to do accomplish this or a workaround

Yes, that's why I use m_tmNextPeriodicThink variable which is fires a little more than 1 time per second.

Hedgehog Fog 07-24-2023 08:24

Re: CS Modding Kit
 
New update for the Player Model API I working on.
It allows loading player animations from multiple files, for example, it's useful for custom weapons.


1xAero 07-24-2023 08:28

Re: CS Modding Kit
 
Quote:

Originally Posted by Hedgehog Fog (Post 2807688)
New update for the Player Model API I working on.
It allows loading player animations from multiple files, for example, it's useful for custom weapons.


Good job! 8)

Hedgehog Fog 08-01-2023 05:05

Re: CS Modding Kit
 
New path finding API based on default CS nav files, work in progress


Hedgehog Fog 08-02-2023 17:30

Re: CS Modding Kit
 
I've implemented async path finding. I slowed down the pathfinding 1000 times for this video to demonstrate the async and queue processing feature.
Real pathfinding time is about 0.01 seconds for long path (it's about 1500 nav area iterations), which is kinda slow in case you use it for multiple NPCs.


DruGzOG 08-02-2023 18:57

Re: CS Modding Kit
 
Quote:

Originally Posted by Hedgehog Fog (Post 2808119)
I've implemented async path finding. I slowed down the pathfinding 1000 times for this video to demonstrate the async and queue processing feature.
Real pathfinding time is about 0.01 seconds for long path (it's about 1500 nav area iterations), which is kinda slow in case you use it for multiple NPCs.



Wow, really nice work

Hedgehog Fog 11-09-2023 08:10

Re: CS Modding Kit
 
I continue working on CS Modding Kit and there are a lot of new and awesome APIs you can use in your project!
These APIs are still a work in progress and some things can change before the release, however, you are already able to use WIP versions from the next branch.

APIs
  1. Custom Entities
  2. Custom Weapons
  3. Custom Events
  4. Player Model
  5. Player Cosmetics
  6. Player Inventory
  7. Player View Range
  8. Player Camera
  9. Player Dizziness
  10. Waypoint Markers
  11. Advanced Pushing
  12. Rounds
  13. Nav System

Custom entities
  • Custom Events Handler
  • Fire


https://github.com/Hedgefog/cs-modding-kit/tree/next


All times are GMT -4. The time now is 23:14.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.