Raised This Month: $32 Target: $400
 8% 

[HL] AK-47: Avtomat Kalashnikova


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Half-Life        Category:   Admin Commands        Approver:   ConnorMcLeod (74)
KORD_12.7
Senior Member
Join Date: Aug 2009
Location: Russia, Vladivostok
Old 08-17-2012 , 06:18   [HL] AK-47: Avtomat Kalashnikova
Reply With Quote #1

AK-47: Avtomat Kalashnikova [AGHL.ru link]
version 1.0
by KORD_12.7



Supported mods:
  • Half-Life only.

Needed modules:

Description:
This plugin will add new weapon to game: The AK-47 is a selective-fire, gas-operated 7.62×39mm assault rifle, first developed in the USSR by Mikhail Kalashnikov. It is officially known as Avtomat Kalashnikova (Russian: Автомат Калашникова). It is also known as a Kalashnikov, an "AK", or in Russian slang, Kalash. Rifle also have secondary melee attack with bayonet.

Settings:
Code:
// Weapon settings
#define WEAPON_NAME 			"weapon_ak47"
#define WEAPON_SLOT			2
#define WEAPON_POSITION			5
#define WEAPON_PRIMARY_AMMO		"762x39"
#define WEAPON_PRIMARY_AMMO_MAX		90
#define WEAPON_SECONDARY_AMMO		"" // NULL
#define WEAPON_SECONDARY_AMMO_MAX	-1
#define WEAPON_MAX_CLIP			30
#define WEAPON_DEFAULT_AMMO		30
#define WEAPON_FLAGS			0
#define WEAPON_WEIGHT			15
#define WEAPON_DAMAGE			16.0

// Hud
#define WEAPON_HUD_TXT			"sprites/weapon_ak47.txt"
#define WEAPON_HUD_SPR			"sprites/weapon_ak47.spr"

// Ammobox
#define AMMOBOX_CLASSNAME		"ammo_ak47clip"

// Models and sounds
#define MODEL_CLIP			"models/w_ak47_clip.mdl"
#define MODEL_SHELL			"models/shell_762x39.mdl"

#if defined _CSO_
	#define MODEL_WORLD		"models/w_ak47_cso.mdl"
	#define MODEL_VIEW		"models/v_ak47_cso.mdl"
	#define MODEL_PLAYER		"models/p_ak47_cso.mdl"
	
	#define SOUND_COCK		"weapons/ak47_boltpull.wav"
	#define SOUND_FIRE		"weapons/ak47-1.wav"
	#define SOUND_RELOAD_1		"weapons/ak47_clipin.wav"
	#define SOUND_RELOAD_2		"weapons/ak47_clipout.wav"
#else
	#define MODEL_WORLD		"models/w_ak47_fa.mdl"
	#define MODEL_VIEW		"models/v_ak47_fa.mdl"
	#define MODEL_PLAYER		"models/p_ak47_fa.mdl"
	
	#define SOUND_COCK		"weapons/ak47_cock.wav"
	#define SOUND_FIRE		"weapons/ak47_fire1.wav"
	#define SOUND_RELOAD_1		"weapons/ak47_magin.wav"
	#define SOUND_RELOAD_2		"weapons/ak47_magout.wav"
#endif

#define SOUND_MISS_1			"weapons/bayonet_slash1.wav"
#define SOUND_MISS_2			"weapons/bayonet_slash2.wav"
#define SOUND_MISS_3			"weapons/bayonet_slash3.wav"

#define SOUND_HIT_WALL			"weapons/bayonet_hit_wall.wav"
#define SOUND_HIT_FLESH_1		"weapons/knife_hit_flesh1.wav"
#define SOUND_HIT_FLESH_2		"weapons/knife_hit_flesh2.wav"

// Animation
#define ANIM_EXTENSION			"mp5"

Credits:
  • GordonFreeman - for help with testing.
  • Koshak - for model editing and testing.

Video:

Changelog:
1.0
  • First release.
Note:
Do not use webcompiler aka "Get Plugin" button. Get Source and compile it manually.
Attached Thumbnails
Click image for larger version

Name:	AK-47_screenshot.jpg
Views:	2373
Size:	83.1 KB
ID:	107931  
Attached Files
File Type: zip resources.zip (2.05 MB, 1387 views)
File Type: sma Get Plugin or Get Source (ak47.sma - 2433 views - 16.6 KB)
__________________

Vi Veri Veniversum Vivus Vici
Russian Half-Life and Adrenaline Gamer community

Last edited by KORD_12.7; 09-23-2012 at 01:39.
KORD_12.7 is offline
Send a message via ICQ to KORD_12.7
SPT1
Senior Member
Join Date: Aug 2012
Old 08-17-2012 , 08:00   Re: [HL] AK-47: Avtomat Kalashnikova
Reply With Quote #2

nice
SPT1 is offline
ANTICHRISTUS
kingdom of weird stuff
Join Date: Jun 2010
Location: My kingdom is not in thi
Old 08-17-2012 , 08:14   Re: [HL] AK-47: Avtomat Kalashnikova
Reply With Quote #3

sorry for the spam, but it's really nice to see my favorite weapon in HL too. so thank you a lot .
__________________
ANTICHRISTUS is offline
alencore
Senior Member
Join Date: Oct 2011
Old 09-10-2012 , 12:27   Re: [HL] AK-47: Avtomat Kalashnikova
Reply With Quote #4

Me too I love the ak47. I use an ak74 with GL though. Definitely will check this out.

edit...
Really don't like the model ak47 here well the hands really so got one from TS but it's very buggy of course.
So any tips or guide you know of to fix that?
__________________

Last edited by alencore; 09-15-2012 at 03:10.
alencore is offline
nagile
Member
Join Date: Dec 2012
Location: Norway
Old 01-10-2013 , 14:49   Re: [HL] AK-47: Avtomat Kalashnikova
Reply With Quote #5

This is my favourite gun but theres 1 problem emptying a clip go to fast do you think you could raise max ammo to 210 instead of 120?
__________________
nagile is offline
KORD_12.7
Senior Member
Join Date: Aug 2009
Location: Russia, Vladivostok
Old 01-10-2013 , 20:11   Re: [HL] AK-47: Avtomat Kalashnikova
Reply With Quote #6

Change in plugin's sma this value to yours:

#define WEAPON_PRIMARY_AMMO_MAX 90
__________________

Vi Veri Veniversum Vivus Vici
Russian Half-Life and Adrenaline Gamer community
KORD_12.7 is offline
Send a message via ICQ to KORD_12.7
nagile
Member
Join Date: Dec 2012
Location: Norway
Old 01-11-2013 , 07:12   Re: [HL] AK-47: Avtomat Kalashnikova
Reply With Quote #7

Thanks seems like its standard on all custom weapons i changed AK to max ammo 180.
__________________
nagile is offline
IGROMAAAN
New Member
Join Date: Jan 2021
Old 01-16-2021 , 11:58   5 errors
Reply With Quote #8

Hello! I live in Russia, and I don't understand programming, I wanted to install your ak47 model and when compiling the Ak47.sma file got 5 errors // D: \ Program Files (x86) \ Steam \ steamapps \ common \ Half-Life \ valve \ addons \ amxmodx \ scripting \ ak47.sma (365): error 017: undefined symbol "ExecuteHamB"
// D: \ Program Files (x86) \ Steam \ steamapps \ common \ Half-Life \ valve \ addons \ amxmodx \ scripting \ ak47.sma (394): error 017: undefined symbol "ExecuteHamB"
// D: \ Program Files (x86) \ Steam \ steamapps \ common \ Half-Life \ valve \ addons \ amxmodx \ scripting \ ak47.sma (394): warning 215: expression has no effect
// D: \ Program Files (x86) \ Steam \ steamapps \ common \ Half-Life \ valve \ addons \ amxmodx \ scripting \ ak47.sma (394): warning 215: expression has no effect
// D: \ Program Files (x86) \ Steam \ steamapps \ common \ Half-Life \ valve \ addons \ amxmodx \ scripting \ ak47.sma (394): warning 215: expression has no effect
// D: \ Program Files (x86) \ Steam \ steamapps \ common \ Half-Life \ valve \ addons \ amxmodx \ scripting \ ak47.sma (394): warning 215: expression has no effect
// D: \ Program Files (x86) \ Steam \ steamapps \ common \ Half-Life \ valve \ addons \ amxmodx \ scripting \ ak47.sma (394): warning 215: expression has no effect
// D: \ Program Files (x86) \ Steam \ steamapps \ common \ Half-Life \ valve \ addons \ amxmodx \ scripting \ ak47.sma (394): error 001: expected token: ";", but found ") "
// D: \ Program Files (x86) \ Steam \ steamapps \ common \ Half-Life \ valve \ addons \ amxmodx \ scripting \ ak47.sma (394): error 029: invalid expression, assumed zero
// D: \ Program Files (x86) \ Steam \ steamapps \ common \ Half-Life \ valve \ addons \ amxmodx \ scripting \ ak47.sma (394): fatal error 107: too many error messages on one line i am sorry for inconvenience

Last edited by IGROMAAAN; 01-16-2021 at 11:59.
IGROMAAAN is offline
IGROMAAAN
New Member
Join Date: Jan 2021
Old 01-16-2021 , 12:04   Re: 5 errors
Reply With Quote #9

[QUOTE=IGROMAAAN;2732837]Hello! I live in Russia, and I don't understand programming, I wanted to install your ak47 model and when compiling the Ak47.sma file got 5 errors // D: \ Program Files (x86) \ Steam \ steamapps \ common \ Half-Life \ valve \ addons \ amxmodx \ scripting \ ak47.sma (365): error 017: undefined symbol "ExecuteHamB"
// D: \ Program Files (x86) \ Steam \ steamapps \ common \ Half-Life \ valve \ addons \ amxmodx \ scripting \ ak47.sma (394): error 017: undefined symbol "ExecuteHamB"
// D: \ Program Files (x86) \ Steam \ steamapps \ common \ Half-Life \ valve \ addons \ amxmodx \ scripting \ ak47.sma (394): warning 215: expression has no effect
// D: \ Program Files (x86) \ Steam \ steamapps \ common \ Half-Life \ valve \ addons \ amxmodx \ scripting \ ak47.sma (394): warning 215: expression has no effect
// D: \ Program Files (x86) \ Steam \ steamapps \ common \ Half-Life \ valve \ addons \ amxmodx \ scripting \ ak47.sma (394): warning 215: expression has no effect
// D: \ Program Files (x86) \ Steam \ steamapps \ common \ Half-Life \ valve \ addons \ amxmodx \ scripting \ ak47.sma (394): warning 215: expression has no effect
// D: \ Program Files (x86) \ Steam \ steamapps \ common \ Half-Life \ valve \ addons \ amxmodx \ scripting \ ak47.sma (394): warning 215: expression has no effect
// D: \ Program Files (x86) \ Steam \ steamapps \ common \ Half-Life \ valve \ addons \ amxmodx \ scripting \ ak47.sma (394): error 001: expected token: ";", but found ") "
// D: \ Program Files (x86) \ Steam \ steamapps \ common \ Half-Life \ valve \ addons \ amxmodx \ scripting \ ak47.sma (394): error 029: invalid expression, assumed zero
// D: \ Program Files (x86) \ Steam \ steamapps \ common \ Half-Life \ valve \ addons \ amxmodx \ scripting \ ak47.sma (394): fatal error 107: too many error messages on one line i am sorry for inconvenience.
forgot to say one thing! all necessary plugins and modules are installed

Last edited by IGROMAAAN; 01-16-2021 at 12:04.
IGROMAAAN is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 01-16-2021 , 13:50   Re: [HL] AK-47: Avtomat Kalashnikova
Reply With Quote #10

That's what happens when you donwload AMXX from a fishy website instead of its official one.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 22:01.


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