AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Module Coding (https://forums.alliedmods.net/forumdisplay.php?f=9)
-   -   Module: Half-Life Weapon Mod (v0.8) (https://forums.alliedmods.net/showthread.php?t=183369)

gabuch2 04-12-2019 23:57

Re: Module: Half-Life Weapon Mod (v0.8)
 
Another question.

I have this "weapon" that allows you to make a sound on Fwd_Wpn_PrimaryAttack. How can I add a delay?

Code:
public box_speech(const iItem, const iPlayer) {     switch (random_num(0, 5))     {         case 0: emit_sound(iPlayer, CHAN_WEAPON, SOUND_PHIL_1, 1.0, ATTN_NORM, 0, PITCH_NORM);         case 1: emit_sound(iPlayer, CHAN_WEAPON, SOUND_PHIL_2, 1.0, ATTN_NORM, 0, PITCH_NORM);         case 2: emit_sound(iPlayer, CHAN_WEAPON, SOUND_PHIL_3, 1.0, ATTN_NORM, 0, PITCH_NORM);         case 3: emit_sound(iPlayer, CHAN_WEAPON, SOUND_PHIL_4, 1.0, ATTN_NORM, 0, PITCH_NORM);         case 4: emit_sound(iPlayer, CHAN_WEAPON, SOUND_PHIL_5, 1.0, ATTN_NORM, 0, PITCH_NORM);         case 5: emit_sound(iPlayer, CHAN_WEAPON, SOUND_PHIL_6, 1.0, ATTN_NORM, 0, PITCH_NORM);     } }

I know I can do it with task and typical AMXX stuff, but I'm wondering if there's a more elegant method within Weaponmod.

rtxa 05-03-2020 12:49

Re: Module: Half-Life Weapon Mod (v0.8)
 
Hi, can someone fix the signatures for HL in the latest HLDS build for windows? Valve has added m_flLastYawTime in CBaseMonster, breaking most of plugins. I tried to find the signatures following that tutorial but I didn't have success.

s4mor4i 12-01-2023 05:29

Re: Module: Half-Life Weapon Mod (v0.8)
 
great work, I really admire your work. can I somehow add the new guns to a gungame mode ?

s4mor4i 12-02-2023 05:57

Re: Module: Half-Life Weapon Mod (v0.8)
 
Oh and one more thing. the crosshair doesn't show up for the new guns. any idea why?


All times are GMT -4. The time now is 10:09.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.