Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public fw_CmdStart(id, uc_handle, seed)
- {
- if (CurButton & 1 && get_pdata_float(id, 83, 5, "") <= 0 && g_cannon_ammo[id][0][0])
- {
- CurButton = CurButton & -2;
- set_uc(uc_handle, UC_Buttons, 5192);
- if (get_gametime() - 3.33 <= g_LastAttack[id][0][0])
- {
- Set_PlayerNextAttack(id, g_LastAttack[id][0][0] - get_gametime());
- return 1;
- }
- if (task_exists(id + 210120174, 0) && 1 << id & 31 & is_mode2)
- {
- remove_task(id + 210120174, 0);
- is_dragonout = ~1 << id & 31 & is_dragonout;
- make_efspr(id);
- make_dragon(id);
- make_attackblast(id);
- }
- create_fake_attack(id);
- Make_Push(id);
- Create_CannonFire(id, 1);
- make_fire_smoke(id);
- check_radius_damage(id);
- emit_sound(id, CHAN_WEAPON, "weapons/cannonex_shoota.wav", 1.00, 0.80, 0, 100);
- g_cannon_ammo[id]--;
- update_ammo(id);
- if (!g_cannon_ammo[id][0][0])
- {
- set_task(0.50, "set_weapon_outofammo", id + 210120171, "", 0, "", 0);
- }
- if (!1 << id & 31 & is_mode2)
- {
- Set_WeaponAnim(id, 4);
- Set_WeaponIdleTime(id, 12, 3.33);
- Set_PlayerNextAttack(id, 3.33);
- }
- else
- {
- if (1 << id & 31 & is_dragonout)
- {
- Set_WeaponAnim(id, 7);
- Set_WeaponIdleTime(id, 12, 200.00);
- Set_PlayerNextAttack(id, 200.00);
- set_task(2.50, "special_reload", id + 210120173, "", 0, "", 0);
- }
- Set_WeaponAnim(id, 5);
- Set_WeaponIdleTime(id, 12, 3.33);
- Set_PlayerNextAttack(id, 3.33);
- }
- g_LastAttack[id] = get_gametime();
- }
- else
- {
- if (CurButton & 2048 && !1 << id & 31 & is_mode2 && get_pdata_float(id, 83, 5, "") <= 0)
- {
- CurButton = CurButton & -2049;
- set_uc(uc_handle, UC_Buttons, 5192);
- Set_WeaponAnim(id, 6);
- make_dragonlight(id);
- Set_PlayerNextAttack(id, 200.00);
- Set_WeaponIdleTime(id, 12, 200.00);
- set_task(3.13, "change_mode", id + 210120172, "", 0, "", 0);
- }
- if (CurButton & 2048 && 1 << id & 31 & is_mode2)
- {
- ExecuteHamB(Ham_Weapon_WeaponIdle, ent);
- }
- }
- return 2;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement