Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function int HandleCassattDamage(int respawning)
- {
- if (CheckInventory("CassattClass") == 1)
- {
- for(int def = -10; def < 31; def++)
- {
- if (GetCvar("samsara_cassattdamage") != def)
- {
- str powdef = "PowerDamageBuff";
- int powdef_obj = strparam(s:powdef,i:def);
- TakeInventory(powdef_obj,1);
- }
- if (GetCvar("samsara_cassattdamage") == def)
- {
- str powdef = "PowerDamageBuff";
- int powdef_obj = strparam(s:powdef,i:def);
- GiveInventory(powdef_obj,1);
- }
- }
- }
- return 1;
- }
- function int HandleCassattDefense(int respawning)
- {
- if (CheckInventory("CassattClass") == 1)
- {
- for(int def = -10; def < 21; def++)
- {
- if (GetCvar("samsara_cassattdefense") != def)
- {
- str powdef = "PowerDefenseBuff";
- int powdef_obj = strparam(s:powdef,i:def);
- TakeInventory(powdef_obj,1);
- }
- if (GetCvar("samsara_cassattdefense") == def)
- {
- str powdef = "PowerDefenseBuff";
- int powdef_obj = strparam(s:powdef,i:def);
- GiveInventory(powdef_obj,1);
- }
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement