Core 1 : Dyna and Core 2 : Nova studio
Would you like to react to this message? Create an account in a few clicks or log in to continue.

[TUT] CREATING IRON SIGHT WEAPON

+4
RAFAEL
jason_ghost123
razieljohn619
redplane
8 posters

Go down

[TUT] CREATING IRON SIGHT WEAPON Empty [TUT] CREATING IRON SIGHT WEAPON

Post  redplane Fri Jul 29, 2011 7:45 pm

[G4U RIFLE - A Small Plugin of CS RED WEAPON SYSTEM]

Hi, everybody Smile

I don't know why I really like Call of Duty, so I made this plugin to help you to create your own weapon like the weapon of Call of Duty

First of all, I'll introduce my plugin to you

G4U RIFLE is a small plugin of CS RED WEAPON SYSTEM, it is used for my CS MOD : CS RED. Normally It can't work alone, but I see that you're

interesting in Iron sight weapon, and G4U RIFLE support for IRON SIGHT weapon well Very Happy
G4U RIFLE helps you to create many types of weapons, such as:
- Weapon with zoom scope (That means : Your weapon can zoom in and out)
- Grenade launcher weapon (This weapon is like the ones in Call of Duty, when you launch a grenade and if the distance between you and the hit

point is shorter than 2.5m , the grenade will NOT explode)
- Grenade launcher weapon + zoom scope
- Laser sight weapon (When you press the SPECIAL ATTACK BUTTON, a RED DOT will appear)
- Iron sight weapon (1st type)
- One shot mode (The speed of weapon is drecreased but the accuracy is higher)
- Burst shot mode (The weapon can shoot 3 bullets one time, those bullets go with a same line, and have the same hit point)
- Burst shot mode + One shot mode (You can choose one of them by press SPECIAL ATTACK BUTTON)
- Weapon with Melee (Weapon is attached with a melee, and you can use that melee to attack your enermies )
- RPG weapon
- Iron sight weapon + Burst shot mode
- Iron sight weapon (2nd type)
- Weapon shoots as Gatling Gun
- Weapon can shoot through the SHIELD
- Weapon can reactive it's zoom (Like AWM)
- Weapon shoot 2 bullets one time (Like Dual Barrel)
- Weapon reload like a shotgun but it has 1 bullet line (Like Winchester)
- Dual weapon
......................
Many many type of weapons else, but today, I only instruct you how to make an Iron Sight weapon (Other types of weapon, you can find them at CS RED)

OK, Let's go
Step 1: You have to download G4U RIFLE VERSION 7.9

http://www.4shared.com/file/y75OD1-m/csredplane_riffle.html

NOTE : Dont change the name of plugin, if you do, the plugin will be automatically disabled
Step 2 : Install the plugin and create necessary folder

- Go to xxx/cstrike/addons/amxmodx/plugins
Put the file .amxx in there
[TUT] CREATING IRON SIGHT WEAPON Anhso-082157_step_1 http://up.anhso.net
- Go to xxx/cstrike/addons/amxmodx/configs
Open the plugins.ini files and fill the name of the plugin you've downloaded in one line
[TUT] CREATING IRON SIGHT WEAPON Anhso-082201_step_2 http://up.anhso.net
- Go to xxx/cstrike/addons/amxmodx/configs
+) Create a folder named g4u_weapon
+) Inside the created folder, you create a sub-folder named riffle
+) Inside the created sub-folder, you create a folder named weapon_config and a file named manager.cfg
[TUT] CREATING IRON SIGHT WEAPON Anhso-082203_step_3 http://up.anhso.net

[TUT] CREATING IRON SIGHT WEAPON Anhso-082205_step_4 http://up.anhso.net
- Go to xxx/cstrike/sound/weapons
+) Create a folder named g4u_wpn
[TUT] CREATING IRON SIGHT WEAPON Anhso-082207_step_5 http://up.anhso.net
- Go to xxx/cstrike/sprites
+) Create a folder named g4u_wpn
- Go to xxx/cstrike/models
+) Create a folder named g4u_wpn
[TUT] CREATING IRON SIGHT WEAPON Anhso-082210_step_6 http://up.anhso.net
OK , the installation step is done, now i'll instruct you to :

+) CREATE IRON SIGHT WEAPON (1st TYPE)

NOTE : THE IRON SIGHT WEAPON IS CREATED BY G4U RIFLE, WHEN YOU USE IRON SIGHT FUNCTION, THE DEFAULT CROSSHAIR OF

COUNTER STRIKE WILL BE REMOVED AND THE WEAPON'S RECOIL WILL BE DECREASED BY 50% TO 75%

+) First of all , you have to know the structure model of IRON SIGHT 1st TYPE
The structure of model of this type is like the structure of model of M4A1, OK, Perhaps, I'm not good at literature so you dont know what I said
Download this model, you will know Wink

http://www.4shared.com/file/Lm8VWMGH/v_g36k.html

Now, you have to create an .ini file in xxx/cstrike/addons/amxmodx/configs/g4u_weapon/riffle/weapon_config . For example : I created weapon_g36k.ini
Open your .INI file, and you have to fill that file all the information below

[name]G36k - The name of Weapon (It will appear in the BUY MENU)
[wpn_change]22 - Dont change this value
[clip]30 - How many bullets per clip? - It's 30
[bpa]90 - How many bullets you can carry ? - It's 90
[speed]
- The smaller this value is, the faster your weapon can execute it's attack
- How many second do we need to active our Iron sight
- How many second do we need to deactive our Iron sight
NOTE : If you don't set a value to or - It will be know as 0.4
[recoil]0.63 - The smaller this value is , the lower your weapon's recoil is
[zoom_type]1 - The zoom type of weapon (1 - Zoom like AUG , 2 - AWM level 1, 3 - AWM level 2, 4 - Both level of AWM, 5 - Specific zoom)
[special]0 - Dont change this value
[special_mode]5 - This is the value of Iron sight type 1 - You can change it to 11, [special_mode]11 to use Burst mode
[hud_kill]g36k - The hud of weapon (will be appeared when you kill someone)
[damage_player]1.15 - this value * default damage of weapon = your current damage will be executed at a player
[damage_entity]2.4 - like above but the damage will be executed at a entity (such as : func_breakable, func_pushable)
[damage_hostage]1.5 - like [damage_player] but the damage will be executed at a hostage
[cost_type]1 - Dont change this value
[cost]42000 - How much does your weapon cost? - Oh, it's 42000 $
[model]g36k - The model directory of your weapon
[level]21 - Dont care about this value
[ammo_cost]45 - How much does a clip of your weapon cost ? - Oh, it's 45$
[can_pick_after_death]1 - Can someone else can pick up your weapon if you own this and you died (0 - NO, 1 - YES)
[nade_amount]5 - Dont care about this
[nade_delay]2.0 - Dont care
[nade_type]5 - Dont care
[nade_hud]grenade - Dont care
[nade_cost_type]4 - Dont care
[nade_cost]500 - Dont care
[nade_model]launcher_nade - Dont care
[nade_render]0 1 255 255 255 - Dont care
[sound]G36K_1 - The shoot sound of your weapon (will be placed at xxx/cstrike/sound/weapons/g4u_wpn)
[sprite]zerogxplode2 - Dont care
[ninfo]5 150 - Dont care
[weight]0.135 - Dont care
[dspeed]42.5 - Dont care
[knockback-power]1.15 - DONT
[knockback_distance]500 - DONT
[reload_time]2.6 - How many seconds does your weapon need to reload?
[deploy_time]0.9 - How many seconds do you need to draw your weapon?

+) All your models (p_ model, v_ model, w_ model) MUST BE HAD THE SAME NAME
In my example, all my models must be named : p_g36k, v_g36k, w_g36k
AND THEY MUST BE PUT IN THE FOLDER WHICH HAS THE SAME NAME : g36k

[TUT] CREATING IRON SIGHT WEAPON Anhso-082212_step_7 http://up.anhso.net

AND THE FOLDER MUST BE PUT IN : xxx/cstrike/g4u_wpn
+) Ok, when you done, save this file
+) Open the manager.cfg , put your file name in a line (not include .ini) like this:
[TUT] CREATING IRON SIGHT WEAPON Anhso-082214_step_8 http://up.anhso.net
+) Save this file, and get in game Wink, and enjoy Smile
- Open your console, type g4u_menu to open the WEAPON MENU

******* IRON SIGHT (2nd Type) ************************
- This iron sight function will be applied for ALL WEAPON

First of all, I introduce the MAX_ANIMATION

If you want to make this type of IRON SIGHT FUNCTION to A WEAPON, just look it's original model

If you have a model of AK47, and you want to make it IRON SIGHT, ok, this time you have to know MAX_ANIMATION

Look at the origin model of AK47, normally , it has these animations
- idle
- reload
- draw
- shoot1
- shoot2
- shoot3

[TUT] CREATING IRON SIGHT WEAPON Anhso-082217_step_9 http://up.anhso.net

OK, now we number them
- idle (0)
- reload (1)
- draw (2)
....
- shoot3 (5)

We treat the 1st animation of the original model of Weapon we want to make iron sight as 0
Now , in my example, SHOOT3 is the LAST animation , and the position of it is 5th, so the MAX_ANIMATION is 5

OK, now I have a model of AK47, and I want to make it IRON SIGHT,
so , the STARTING IRON SIGHT ANIMATION is the MAX_ANIMATION + 4 = 9th
the FINISHING IRON SIGHT ANIMATION is the MAX_ANIMATION + 5 = 10th

Now, my new model has these animations
- idle
- reload
- draw
- shoot1
- shoot2
- shoot3
- idle (dont care about this animation)
- idle (dont care)
- idle (dont care)
- sight begin
- sight end

YOU HAVE TO MAKE SURE THAT : THE STARTING ANIMATION's POSITION IS MAX_ANIMATION + 4
THE FINISHING's IS MAX_ANIMATION + 5

Ok, now , create an .INI file in weapon_config


[name]AK47 - SCOPE
[wpn_change]28
[clip]35
[bpa]70
[speed]0.95
[recoil]0.67
[zoom_type]5 35
[special]0
[special_mode]12 - THIS VALUE MUST BE 12 - DONT CHANGE
[hud_kill]AK47S
[damage_player]1.25
[damage_entity]1.3
[damage_hostage]1.0
[cost_type]1
[cost]45620
[model]Akcsope
[level]0
[ammo_cost]60
[can_pick_after_death]1
[nade_amount]5
[nade_delay]2.0
[nade_type]1
[nade_hud]grenade
[nade_cost_type]4
[nade_cost]800
[nade_model]launcher_nade
[nade_render]1 1 255 255 255
[sound]ak
[sprite]heartbomb_exp
[ninfo]15 200 500
[weight]0.155
[dspeed]46
[knockback-power]2.0
[knockback_distance]200
[reload_time]2.75
[deploy_time]0.8


NOTE : YOU HAVE TO HAVE ONE ADDITIONAL MODEL, named v__s.mdl
IN MY EXAMPLE, I HAVE TO HAVE : v_Akcsope_s.mdl

This _s model MUST HAS THE SAME ANIMATION LIKE THE ORIGINAL , BUT THE ORIGIN OF IT IS DIFFERENT
Very Happy, I think I'm not good at literature , so you CANT UNDERSTAND ME Wink
OK, Take this model and you will know Wink

http://www.4shared.com/file/62Xx5N6Z/v_Akcsope_s.html

[TUT] CREATING IRON SIGHT WEAPON Anhso-082219_step_10 http://up.anhso.ne


+) Ok, when you done, save this file
+) Open the manager.cfg , put your file name in a line (not include .ini) like this:

+) Save this file, and get in game Wink, and enjoy Smile
- Open your console, type g4u_menu to open the WEAPON MENU

Here is my some configuration files Wink, download it, and copy to the necessary folders


NOTE : IF YOU WANT YOUR IRON SIGHT WEAPON CAN ZOOM IN AND OUT, CARE ABOUT [zoom_type]

When you active the IRON SIGHT FUNCTION:
+ ) If [zoom_type] is 1 => Your weapon will zoom in like AUG or SG552 (The crosshair is still removed)
+ ) If [zoom_type] is 2 => Your weapon will zoom in like the 1st level of AWM
+) If [zoom_type] is 3 => Your weapon will zoom in like the 2nd level of AWM

NOTE : IF YOU WANT YOUR WEAPON WILL RE-ACTIVE IT'S ZOOM AFTER A SHOT (Like AWM)
SET:
[special]3

Any questions, please send email to redplane_dt@yahoo.com.vn
Or add my Yahoo ID : redplane_dt and I will instruct you directly


redplane
Corporal
Corporal

Posts : 69
Points : 73
Join date : 2011-07-12

Back to top Go down

[TUT] CREATING IRON SIGHT WEAPON Empty Re: [TUT] CREATING IRON SIGHT WEAPON

Post  razieljohn619 Fri Jul 29, 2011 7:55 pm

thanks for posting this here , but i dont think this should be in CoD WIP section
razieljohn619
razieljohn619
Sergeant Major
Sergeant Major

Posts : 468
Points : 464
Join date : 2011-04-21
Age : 27
Location : Philippines

https://www.facebook.com/razieljohncanque

Back to top Go down

[TUT] CREATING IRON SIGHT WEAPON Empty Re: [TUT] CREATING IRON SIGHT WEAPON

Post  jason_ghost123 Fri Jul 29, 2011 10:17 pm

dude.... my game didnt load when i started the game.......
jason_ghost123
jason_ghost123
Sergeant First Class
Sergeant First Class

Posts : 243
Points : 329
Join date : 2010-09-03
Age : 28
Location : nangka, marikina city Philippines

Back to top Go down

[TUT] CREATING IRON SIGHT WEAPON Empty Re: [TUT] CREATING IRON SIGHT WEAPON

Post  redplane Sat Jul 30, 2011 12:11 am

Didn't load what? Model or Weapon Information?
Get in game, you have to type g4u_menu in your console to open the Menu of G4U RIFLE
Do you have team viewer? I have to see your error directly

redplane
Corporal
Corporal

Posts : 69
Points : 73
Join date : 2011-07-12

Back to top Go down

[TUT] CREATING IRON SIGHT WEAPON Empty Re: [TUT] CREATING IRON SIGHT WEAPON

Post  jason_ghost123 Sat Jul 30, 2011 12:19 am

i carefully installed the plugin....
then i started counter strike
then when it loads........ it doesnt finish loading.... i waited too long... then the game crashed
but when i removed the plugin... the game is back to normal
jason_ghost123
jason_ghost123
Sergeant First Class
Sergeant First Class

Posts : 243
Points : 329
Join date : 2010-09-03
Age : 28
Location : nangka, marikina city Philippines

Back to top Go down

[TUT] CREATING IRON SIGHT WEAPON Empty Re: [TUT] CREATING IRON SIGHT WEAPON

Post  razieljohn619 Sat Jul 30, 2011 12:58 am

jason_ghost123 wrote:i carefully installed the plugin....
then i started counter strike
then when it loads........ it doesnt finish loading.... i waited too long... then the game crashed
but when i removed the plugin... the game is back to normal

did u followed the instructions?
razieljohn619
razieljohn619
Sergeant Major
Sergeant Major

Posts : 468
Points : 464
Join date : 2011-04-21
Age : 27
Location : Philippines

https://www.facebook.com/razieljohncanque

Back to top Go down

[TUT] CREATING IRON SIGHT WEAPON Empty Re: [TUT] CREATING IRON SIGHT WEAPON

Post  jason_ghost123 Sat Jul 30, 2011 2:40 am

yeah... i did
jason_ghost123
jason_ghost123
Sergeant First Class
Sergeant First Class

Posts : 243
Points : 329
Join date : 2010-09-03
Age : 28
Location : nangka, marikina city Philippines

Back to top Go down

[TUT] CREATING IRON SIGHT WEAPON Empty Re: [TUT] CREATING IRON SIGHT WEAPON

Post  RAFAEL Wed Sep 07, 2011 1:53 am

i need your modules
RAFAEL
RAFAEL
Brigadier General
Brigadier General

Posts : 1277
Points : 1351
Join date : 2011-07-14
Age : 30
Location : Brazil

http://rgggames.blogspot.com

Back to top Go down

[TUT] CREATING IRON SIGHT WEAPON Empty Re: [TUT] CREATING IRON SIGHT WEAPON

Post  kingston201 Sat Sep 17, 2011 8:51 pm

Is there a .sma file?????? Question

kingston201
Private
Private

Posts : 2
Points : 2
Join date : 2011-09-17

Back to top Go down

[TUT] CREATING IRON SIGHT WEAPON Empty Re: [TUT] CREATING IRON SIGHT WEAPON

Post  Toxicator Thu Aug 09, 2012 7:23 am

How to buy a weapon ??

Toxicator
Private
Private

Posts : 2
Points : 2
Join date : 2012-08-06

Back to top Go down

[TUT] CREATING IRON SIGHT WEAPON Empty Re: [TUT] CREATING IRON SIGHT WEAPON

Post  davidhunter Thu Aug 09, 2012 9:05 pm

razieljohn619 wrote:
jason_ghost123 wrote:i carefully installed the plugin....
then i started counter strike
then when it loads........ it doesnt finish loading.... i waited too long... then the game crashed
but when i removed the plugin... the game is back to normal

did u followed the instructions?
dont have a video ??? its more easy if i see all the info Very Happy
davidhunter
davidhunter
Sergeant Major
Sergeant Major

Posts : 351
Points : 392
Join date : 2011-11-24
Age : 32
Location : CHILE/VALPARAISO

https://www.facebook.com/profile.php?id=1498907328

Back to top Go down

[TUT] CREATING IRON SIGHT WEAPON Empty Re: [TUT] CREATING IRON SIGHT WEAPON

Post  Toxicator Fri Aug 10, 2012 1:27 am

kingston201 wrote:Is there a .sma file?????? Question

I Have a .sma from version 8.4

Toxicator
Private
Private

Posts : 2
Points : 2
Join date : 2012-08-06

Back to top Go down

[TUT] CREATING IRON SIGHT WEAPON Empty Re: [TUT] CREATING IRON SIGHT WEAPON

Post  redplane Sat Aug 11, 2012 11:27 am

Long time to see Very Happy. Sorry for leave this topic Smile

Someone close this please Smile. I'm recoding my weapon system, and I'll introduce them to you as soon as posible Smile . I like COD very much and my weapon system support almost COD weapon type Smile

redplane
Corporal
Corporal

Posts : 69
Points : 73
Join date : 2011-07-12

Back to top Go down

[TUT] CREATING IRON SIGHT WEAPON Empty Re: [TUT] CREATING IRON SIGHT WEAPON

Post  IronCore Tue Oct 02, 2012 2:34 am

Oh plz dont lock this yet. I really want to learn this.

Yo replane plz post what amx mod x modules your plugins requires to work properly?

Also do you have premade model pack already with working iron sights so
we can have a good working base samples we can look and on play with.
Much tnx for this tutorial will really study it.

edit..
Ok seems I found a much simpler one to use and here's the result...
https://youtu.be/8jX0mXac2LE

Still your plugin seems has way more features so I will still try it.

IronCore
Corporal
Corporal

Posts : 51
Points : 48
Join date : 2011-10-20
Location : Filipinas

Back to top Go down

[TUT] CREATING IRON SIGHT WEAPON Empty Re: [TUT] CREATING IRON SIGHT WEAPON

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum