View Single Post
jasonfrog
Senior Member
Join Date: Mar 2008
Old 04-13-2013 , 15:19   [Subplugin] Rage Model v1.1 (2013/04/15)
Reply With Quote

Rage Model (Latest Version: v1.1)

This plugin provides 3 functions.
  • Changing the Bosses model to a secondary model when the Boss rages, and restoring the primary model after the rage.
  • Changing the Bosses primary model to an additional model(s) depending on the percentage of the Bosses remaining health.
  • Changing the Bosses primary model to an additional model(s) depending on the Bosses current life.
All functions can be used together, or on their own.

Installation:
  • ff2_ragemodel.ff2 -> plugins/freaks/
  • ff2_ragemodel.sp -> scripting/

Rage Model
PHP Code:
"abilityX"
{
    
"name" "rage_model"
    "arg1" "10"  
//duration in seconds before changing back from rage to primary model
    
"arg2" "models\freak_fortress_2\boss\bossrage.mdl"        //path to rage boss model    
    
"arg3" "models\freak_fortress_2\boss\boss.mdl"         //path to primary boss model    
    
"plugin_name" "ff2_ragemodel"

  • All models and materials need to be added to the mod_download, mat_download and download tables, where applicable, in the Boss config.
  • All models need to be added to the mod_precache table in the Boss config.


Health Model
PHP Code:
"abilityX"
{
    
"name" "health_model"
    "arg1" "80"    
// percentage of health remaining 
    
"arg2" "models\freak_fortress_2\boss\bossdamage1.mdl"    //path to boss model
    
"arg3" "60"    // percentage of health remaining  
    
"arg4" "models\freak_fortress_2\boss\bossdamage2.mdl"    //path to boss model
    
"arg5" "40"    // percentage of health remaining  
    
"arg6" "models\freak_fortress_2\boss\bossdamage3.mdl"    //path to boss model
    
"arg7" "20"    // percentage of health remaining  
    
"arg8" "models\freak_fortress_2\boss\bossdamage4.mdl"    //path to boss model
    
"arg9" "10"    // percentage of health remaining  
    
"arg10" "models\freak_fortress_2\boss\bossdamage5.mdl"    //path to boss model
    
"plugin_name" "ff2_ragemodel"

  • Not all args need to be used, i.e. if you only have one damage model, then just set arg1 and arg2. The rest of the args can be left blank or deleted.
  • All models and materials need to be added to the mod_download, mat_download and download tables, where applicable, in the Boss config.
  • All models need to be added to the mod_precache table in the Boss config.
  • Maximum of 5 damage models.


Life Model
PHP Code:
"abilityX"
{
    
"name" "life_model"
    "arg0" "-1"    
// required, do not change.
    
"arg1" "models\freak_fortress_2\boss\bosslife1.mdl"    //path to boss model for 1st death
    
"arg2" "models\freak_fortress_2\boss\bosslife2.mdl"    //path to boss model for 2nd death
    
"arg3" "models\freak_fortress_2\boss\bosslife3.mdl"    //path to boss model for 3rd death
    
"arg4" "models\freak_fortress_2\boss\bosslife4.mdl"    //path to boss model for 4th death
    
"arg5" "models\freak_fortress_2\boss\bosslife5.mdl"    //path to boss model for 5th death
    
"arg6" "models\freak_fortress_2\boss\bosslife6.mdl"    //path to boss model for 6th death
    
"arg7" "models\freak_fortress_2\boss\bosslife7.mdl"    //path to boss model for 7th death
    
"arg8" "models\freak_fortress_2\boss\bosslife8.mdl"    //path to boss model for 8th death
    
"arg9" "models\freak_fortress_2\boss\bosslife9.mdl"    //path to boss model for 9th death
    
"arg10" "models\freak_fortress_2\boss\bosslife10.mdl"    //path to boss model for 10th death
    
"plugin_name" "ff2_ragemodel"

  • Not all args need to be used, i.e. if you only want to change the Bosses model after it's 3rd death, then just set arg3. The rest of the args can be left blank or deleted.
  • All models and materials need to be added to the mod_download, mat_download and download tables, where applicable, in the Boss config.
  • All models need to be added to the mod_precache table in the Boss config.
  • Maximum of 10 life models.


ChangeLog:
v1.1: Added Life Model.
v1.0: Initial release.
Attached Files
File Type: smx ff2_ragemodel.smx (6.8 KB, 836 views)
File Type: sp Get Plugin or Get Source (ff2_ragemodel.sp - 628 views - 6.9 KB)

Last edited by jasonfrog; 04-15-2013 at 10:02. Reason: Updated to v1.1
jasonfrog is offline