AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   New Plugin Submissions (https://forums.alliedmods.net/forumdisplay.php?f=26)
-   -   Furien Supreme v5 [API Classes & Weapons] (https://forums.alliedmods.net/showthread.php?t=342683)

Jhob94 05-05-2023 11:15

Furien Supreme v5 [API Classes & Weapons]
 
3 Attachment(s)
Furien Supreme v5
Updated at : 05/03/2024

Looking for a Furien API? Now you can easily register Classes and Weapons!
The best part? Furiens can now see the invisible furiens which improves the team gameplay.
Plus you can use player models without any crash issue since it has a stable model set system and a well made auto team balance & team swap system. Includes Wallhang feature!


Information & Differences
  • Invisibility is set on AddToFullPack, this way furiens can see furiens (half invisible)
  • Easy to register Classes
  • Easy to register Weapons
  • Allows you to build special weapons like converting Zombie weapons into this Mod
  • Classes can have it's own model
  • You can easily register a class or weapon for VIP/Admin only (Set by Flag)
  • AutoJoin Feature (enable/disable) on configuration file
  • Auto switch teams + auto team balance -> Safe
  • Wallhang feature (Furiens & Humans, configurable)




Configuration File
Code:

;If 1 Furiens can NOT pick weapons from ground
WEAPONS_HUMANS_ONLY 1

; If 1 bomb will be removed
PLANT_NOT_ALLOWED 0

; If 1 player will autojoin
AUTO_JOIN_TEAM 1

; Game Name
GAME_NAME "Furien Supreme"

; Models
HUMAN_MODEL gign
FURIEN_MODEL leet

; Default/Humans Values
SPEED_DEFAULT 350.0
DEFAULT_GRAVITY 800.0

; Enable Wallhang feature
; 0 - Disable
; 1 - Enable only for Furiens
; 2 - Enable for Furiens & Humans
ENABLE_WALLHANG 1

; Furien Wallhang speed - must be float
TWH_SPEED 600.0

; Human Wallhang speed - must be float
CTWH_SPEED 300.0





Include File
Code:

#if defined _furien_supreme_included
  #endinput
#endif
#define _furien_supreme_included

enum {
        Primary_Weapon,
        Secondary_Weapon
}

/**
 * Registers Furien Classes
 *
 * @param szName        Class Name
 * @param szDesc        Class Description
 * @param szModel        Player model
 * @param fSpeed        Class Speed
 * @param fGravity        Class Gravity
 * @param szFlag        Flag required to use the Class
 * @param szFlagDesc        Description - ie. "VIP"
 * @return                An internal Furien Class ID
 */
native furien_register_class(const szName[], const szDesc[], const szModel[], Float:fSpeed, Float:fGravity, const szFlag[], const szFlagDesc[])

/**
 * Registers Weapons
 *
 * @param szName        Class Name
 * @param Secondary        Primary = 0 | Secondary = 1
 * @param szFlag        Flag required to use the Weapon
 * @param szFlagDesc        Description - ie. "VIP"
 * @return                An internal Weapon Class ID
 */
native furien_register_weapon(const szName[], Secondary, const szFlag[], const szFlagDescription[])

/**
 * Get furien Class
 *
 * @param Id                Player Index
 * @return                Furien Class ID
 */
native furien_get_user_class(id)

/**
 * Called when a player choses his Furien Class
 *
 * @param id                Player's Index
 * @param ClassID        Index of the Class. Required on sub-plugins
 */
forward furien_class_selected(id, ClassID)

/**
 * Called when a player choses his Primary/Secondary Weapons
 *
 * @param id                Player's Index
 * @param WeaponID        INTERNAL Index of the Weapon. Required on sub-plugins
 */
forward furien_primary_selected(id, WeaponID)
forward furien_secondary_selected(id, WeaponID)

/**
 * Called when after player spawned and stuff assigned
 *
 * @param id                Player's Index
 */
forward furien_spawn_post(id)

/**
 * Get User Gravity
 *
 * @param Id                Player Index
 * @return                User Gravity
 */
native Float:furien_get_user_gravity(id)

/**
 * Set User Gravity
 *
 * @param Id                Player Index
 * @param NewGravity        New Gravity's float value
 */
native furien_set_user_gravity(id, Float: NewGravity)

/**
 * Get User Speed
 *
 * @param Id                Player Index
 * @return                User Speed
 */
native Float:furien_get_user_speed(id)

/**
 * Set User Speed
 *
 * @param Id                Player Index
 * @param NewSpeed        New Speed's float value
 */
native furien_set_user_speed(id, Float: NewSpeed)




I want to credit ConnorMcLeod for his awesome work on the past.

Jhob94 05-05-2023 11:16

Re: Furien Supreme [API Classes & Weapons]
 
2 Attachment(s)
Here you can find some basic Classes & weapons.
It requires furien_supreme.inc in order to compile!
I will give better examples later on monday. #Friday :fox:

Jhob94 05-08-2023 15:04

Re: Furien Supreme [API Classes & Weapons]
 
1 Attachment(s)
V0.0.2 - Added new features to check & change user speed/gravity

On attachment:
Parachute 1.3 edited so users don't lose their gravity


By the way, if you're running it give me a feedback.

Jhob94 05-12-2023 13:08

Re: Furien Supreme [API Classes & Weapons]
 
V0.0.3 - Added Auto Team Balance & minor optimizations

To note: I added an auto team balance to make it a safe balance, since it stop players from switching team there are no crashes due to agressive team changes.

QuickDroLLL 05-13-2023 05:23

Re: Furien Supreme [API Classes & Weapons]
 
wow its cool i will try it on my servers for sure

Jhob94 05-15-2023 09:38

Re: Furien Supreme [API Classes & Weapons]
 
V0.04 - Important Optimization/Fix

Added a check on Auto team balance or it could assume a repeated player (in case of more than 1 player got auto team balanced)

Jhob94 07-12-2023 19:57

Re: Furien Supreme [API Classes & Weapons]
 
People running it, any request?
I am up to suggestions on weapons and classes

bigdaddy424 07-14-2023 18:43

Re: Furien Supreme [API Classes & Weapons]
 
zombie plague mod has some great graphic weapons you can port them to your mod to attract people
also add some images, it'll get others attention to try it out!

Jhob94 07-17-2023 09:55

Re: Furien Supreme [API Classes & Weapons]
 
https://m.youtube.com/watch?v=OkoOk7...1lcnogZnVyaWVu

I don’t release those weapons because they are from CSO and they are not made by me. I am not sure if they can shared to public. I used to test the api.

bigdaddy424 07-17-2023 15:22

Re: Furien Supreme [API Classes & Weapons]
 
i totally understand you point but keep in mind that you an independent developer and as long as youre crediting the original authors you should be just fine. im very positive that no one will decide to file a lawsuit against you for using someone else's work. in fact they should be happy that theres people that appreciate its own work and use it.
anything that is posted on alliedmods or gamebanana its pretty much available for everyone to copy and use however the end wants. youre not releasing anything if its already on the web. youre just editing code so weapon shows on ct's menu

Jhob94 07-17-2023 16:29

Re: Furien Supreme [API Classes & Weapons]
 
Quote:

Originally Posted by bigdaddy424 (Post 2807303)
i totally understand you point but keep in mind that you an independent developer and as long as youre crediting the original authors you should be just fine. im very positive that no one will decide to file a lawsuit against you for using someone else's work. in fact they should be happy that theres people that appreciate its own work and use it.
anything that is posted on alliedmods or gamebanana its pretty much available for everyone to copy and use however the end wants. youre not releasing anything if its already on the web. youre just editing code so weapon shows on ct's menu

Those plugins are public somewhere, they are easy to edit into this furien api. I will not recommend them since the author is an "as long as it works" programmer. He uses CurWeapon for every plugin when there are better ways. So no, i will not post them. It would be bad to recommend such plugins. This video only shows that this API allows a whole new gameplay to the Furien servers.

Jhob94 03-05-2024 12:15

Re: Furien Supreme [API Classes & Weapons]
 
Updated.

Added:
- Wallhang feature to both Furiens & Humans. Configurable via ini file.
- Small optimization on weapons menu
- Added a feature so a player can reopen weapons menu on M (team change) key if the menu got closed by mistake

bakugan 03-30-2024 18:54

Re: Furien Supreme v5 [API Classes & Weapons]
 
Great


All times are GMT -4. The time now is 06:59.

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