VIDEO
Description
Super Smash Bros gamemode for CSGO.
You can play this game mode with bots.
Players have a damage total which rises as they take damage. As a player's percentage rises, the player can be knocked progressively farther by an opponent's attacks. Push all players in the opposing team out of map to win.
Install Install Nav Area Utilities
Download plugin and assets.
Upload assets to your FastDL server.
Check configs/kento_smashbros/ and make your own configs.
Install item modules you need, such as CSGO Weapons
Cvars
PHP Code:
sb_upward_force // Default upward force multiplier.
sb_angles // Default push angles from 0 to 89. 0 looking down and up to 89 looking up.
sb_givedmg_multiplier // Default dmage to % multiplier when giving damage. Player's % will add damage*give_multiplier*take_multiplier
sb_takedmg_multiplier // Default dmage to % multiplier when taking damage. Player's % will add damage*give_multiplier*take_multiplier
sb_pushback_multiplier // Default push back distance by damage\nif set to 3.0, distance will be damage*3.0
sb_ff // Allow friendly fire or not.
Commands
PHP Code:
sm_sb // Smash Bros mode menu.
sm_vol // Smash Bros mode volume.
sm_guns // Smash Bros weapon menu.
sm_weapons // Smash Bros weapon menu.
sm_dmg // Admin set damage to all player, require ADMFLAG_GENERIC.
sm_item // Admin spawn item, require ADMFLAG_GENERIC.
sm_items // Admin spawn random items, require ADMFLAG_GENERIC.
For Developers
You can create item modules for variety game experiences.
Spoiler
PHP Code:
#if defined _kento_sb_included
#endinput
#endif
/**
* Gets client damages.
*
* @param client Player index.
* @return client damages.
*/
native float SB_GetClientDamage ( int client );
/**
* Sets client damages.
*
* @param client Player index.
* @param damage Damage value to set.
* @return true if success, otherwise false.
*/
native bool SB_SetClientDamage ( int client , float damage );
/**
* Gets client give damage multiplier.
*
* @param client Player index.
* @return client give damage multiplier.
*/
native float SB_GetClientGiveDamageMultiplier ( int client );
/**
* Sets client give damage multiplier.
*
* @param client Player index.
* @param multiplier value to set.
* @return true if success, otherwise false.
*/
native bool SB_SetClientGiveDamageMultiplier ( int client , float multiplier );
/**
* Gets client take damage multiplier.
*
* @param client Player index.
* @return client take damage multiplier.
*/
native float SB_GetClientTakeDamageMultiplier ( int client );
/**
* Sets client take damage multiplier.
*
* @param client Player index.
* @param multiplier value to set.
* @return true if success, otherwise false.
*/
native bool SB_SetClientTakeDamageMultiplier ( int client , float multiplier );
/**
* Gets client pushback multiplier.
*
* @param client Player index.
* @return client pushback multiplier.
*/
native float SB_GetClientPushbackMultiplier ( int client );
/**
* Sets client pushback multiplier.
*
* @param client Player index.
* @param multiplier value to set.
* @return true if success, otherwise false.
*/
native bool SB_SetClientPushbackMultiplier ( int client , float multiplier );
/**
* Gets client upward force.
*
* @param client Player index.
* @return client upward force.
*/
native float SB_GetClientUpwardForce ( int client );
/**
* Sets client upward force.
*
* @param client Player index.
* @param force value to set.
* @return true if success, otherwise false.
*/
native bool SB_SetClientUpwardForce ( int client , float force );
/**
* Gets client angle.
*
* @param client Player index.
* @return client angle.
*/
native float SB_GetClientAngle ( int client );
/**
* Sets client angle.
*
* @param client Player index.
* @param force value to set.
* @return true if success, otherwise false.
*/
native bool SB_SetClientAngle ( int client , float angle );
/**
* Sets client angle.
*
* @param client Player index.
* @param force value to set.
* @return true if success, otherwise false.
*/
native bool SB_KnockBackClient ( int client , int attacker );
/**
* When item should spawn.
*
* @param name Item name.
* @param pos Position array.
* @return no return.
*/
forward Action SB_OnItemSpawn (const char [] name , float pos [ 3 ]);
/**
* When client knockback.
*
* @param victim Victim player index.
* @param attacker Attacker player index.
* @velocity Knockback velocity
* @return no return.
*/
forward Action SB_OnClientKnockBack ( int victim , int attacker , float velocity [ 3 ]);
/**
* When player take damage.
*
* @param victim Victim player index.
* @param attacker Attacker player index.
* @param inflictor inflictor entity index, -1 if invalid.
* @param damage Damage
* @return no return.
*/
forward Action SB_OnTakeDamage ( int victim , int attacker , int inflictor , float damage );
Changelog
Spoiler
0.1
Basic damage logic.
Items config.
Spawn items on map and items API.
0.2
Add default items settings in config.
Add BGM settings.
Add simple damage HUD text.
Prevent SetClientDamage to negative value.
0.3
Fix BGM timer.
Fix item spawn timer.
Fix trigger_hurt detect.
0.4
Split damage multiplier to give multiplier and take multiplier.
Multipliers are set by client now.
Add "sb_ff" svar.
Fix molotov damage and grenade damage.
Add more natives.
0.5
Add freezetime countdown timer.
Add set BGM volume command.
Add gamemode menu.
Fix BGM timer length.
Fix BGM not stop.
Knock back player to correct direction, not just push up.
0.6
Add forward SB_OnTakeDamage.
Add round end overlay.
Add round end countdown sound.
Fix item spawn timer.
Add hitgroup multiplier cvars.
0.7
Add weapons settings, data saved in clientprefs by map.
Fix kill event weapon.
Add blow away sounds.
Add cheer sounds when player killed.
Add item spawned message.
Fix wrong player damage when take control of bot.
0.8
Add native SB_KnockBackClient.
Add forward SB_OnClientKnockBack.
Fix return data types of some natives.
Try to fix invalid handle error.
1.0
Add freezetime countdown overlay.
Add round countdown overlay.
Add spawn item command for admins.
Fix timer handle error.
sm_dmg is open with debug mode off for admins.
1.1
Add new native SB_IsFriendlyFire.
Try to fix timer again.
1.2
Fix timer.
Fix showing debug message in debug mode off.
1.3
Fix spamming errors and crash when bot disconnect.
1.4
Change volume command to sm_vol.
Fix item not spawning if plugin late load
1.5
Fix error when bot join in mid game.
1.6
Fix weapon config not parse correctly.
1.7
Fix a problem which make some item not spawning.
Fix a problem which make player able to drop weapons from previous round on round start.
Add new admin command sm_items to spawn items randomly by items config.
Known Bugs
Donate
If you apreciate my work, you can donate me via
steam trade offer or
paypal .
Credits
Git Repo
Download
Assets Download
__________________