ReactiveDrop / reactivedrop_public_src

Alien Swarm: Reactive Drop game source code and issue tracker.
https://reactivedrop.com
118 stars 34 forks source link

The convars about Hand Grenade and Grenade Launcher are confusing. #770

Open IAFJaeger opened 3 months ago

IAFJaeger commented 3 months ago
  1. Now the damage of Hand Grenade and its child cluster are the same. Both of them are affected by rd_grenades_dmg_base, asw_skill_grenades_cluster_dmg_base and asw_skill_grenades_cluster_dmg_step. I think we need some new convars to make them different, like:

    rd_grenades_dmg_base x    // this is already exist
    asw_skill_grenades_grenade_dmg_base y
    asw_skill_grenades_grenade_dmg_step z
    asw_skill_grenades_cluster_dmg_base u    // this is already exist
    asw_skill_grenades_cluster_dmg_step v    // this is already exist

    Then the total damage of Hand Grenade will be:

    x + y + z skill_grenades + num_of_clusters ( u + v * skill_grenades )

  2. Now the damage of Grenade Launcher is also affected by asw_skill_grenades_cluster_dmg_base and asw_skill_grenades_cluster_dmg_step. If we modify Grenade Launcher like this:

    rd_grenade_launcher_dmg_base x    // this dosen't work!
    asw_skill_grenades_cluster_dmg_base y
    asw_skill_grenades_cluster_dmg_step z
    rd_grenade_launcher_num_clusters    n

    Then the total damage of Grenade Launcher will be:

    80 + y + z skill_grenades + n ( y + z * skill_grenades )

It seems that rd_grenade_launcher_dmg_base dosen't work. I think we need some new convars to make the damage of Grenade Launcher and its child cluster different to each other and Hand Grenade, like:

rd_grenade_launcher_dmg_base  x    // this is already exist, but it dosen't work!
asw_skill_grenades_grenade_launcher_dmg_base y
asw_skill_grenades_grenade_launcher_dmg_step z
rd_grenade_launcher_num_clusters  n    // this is already exist
asw_skill_grenades_grenade_launcher_cluster_dmg_base u
asw_skill_grenades_grenade_launcher_cluster_dmg_step v

Then the total damage of Grenade Launcher will be:

x + y + z skill_grenades + n ( u + v * skill_grenades )