Current weapon_scripted availible script values.

Discuss Certain Aspects of Mapping, Modeling, and Coding.
skidz
Obsidian Gold
Obsidian Gold
Posts: 3228
Joined: Mon May 29, 2006 6:36 am
Location: Maple Ridge, BC
Contact:

Current weapon_scripted availible script values.

Post by skidz »

Only a weapon_scripted with a designated script file can use these advanced values in the script file itself. All values should be included in the scripts Advanced block.

Please Note: Weapon types that currently work are: none, Basic Bullet, Burst, and grenade. The others will be added to the next patch. Sorry for the inconvenience.

**Primary Attack**


FireType1 : This is the firetype for Primary Fire. ( 0 = none, 1 = Basic Bullet, 2 = Burst, 3 = shotgun, 4 = autoshotgun, 5 = laser, 6 = warp )

FireRate1 : Rate of Weapons Fire for Primary Fire. ( Not for laser or warp )

FastFire1 : Allow a refire as fast as the player can click, Basic Bullet Only. Good for pistols, basically like the hl2 pistol.

FireUnderWater1 : Primary Fire Allowed Underwater?

These options are for Primary Burst Fire. Amount is how many bullets fired per burst, time is how long between each burst. 1 = 1 second, 0.05 is a good number for time.
BurstAmount1
BetweenBurstTime1

**Secondary Attack**

FireType2 : This is the firetype for Secondary Fire. ( 0 = none, 1 = Basic Bullet, 2 = Burst, 3 = shotgun, 4 = autoshotgun, 5 = laser, 6 = warp, 7 = scope, 8 = grenade )

FireRate2 : Rate of Weapons Fire for Secondary Fire. ( Not for laser or warp )

FastFire2 : Allow a refire as fast as the player can click, Basic Bullet Only. Good for pistols, basically like the hl2 pistol.

FireUnderWater2 : Secondary Fire Allowed Underwater?

These options are for Secondary Burst Fire. Amount is how many bullets fired per burst, time is how long between each burst. 1 = 1 second, 0.05 is a good number for time.
BurstAmount2
BetweenBurstTime2

SecondaryAmmoUsed : This will force the weapon to use its secondary ammo type. Only good for nades and such.

**Global Weapon Settings**


NumberOfRecoilAnims : Number of Recoil Animations, weapon models with ACT_VM_RECOIL animations. ( Only if a weapon has recoil animations, )

RecoilIncrementSpeed : Shots fired till next recoil animation. ( Only if a weapon has recoil animations )

PlayerAnimationSet : This is the player animation set that will be used on all players you view ingame. ( 1 = Pistol, 2 = AR2, 3 = crossbow, 4 = physgun, 5 = shotgun, 6 = smg1 )

GrenadeDamage : Grenade Damage.

GrenadeRadius : The radius of a sphere, all objects inside will be damaged by the value of the Grenade Damage.

TracerType : Tracer type, the effect of the bullet wizzing through the air. ( 0 = none, 1 = normal, 2 = strider, 3 = ar2, 4 = helicopter, 5 = Gunship, 6 = Gauss, 7 = Airboat )

TracerFrequency : How often the wizz effect will be created.

ImpactEffect : Bullet Impact Effect, the effect where the bullet hits. ( 0 = none, 1 = normal, 2 = AR2, 3 = jeep, 4 = Gauss, 5 = airboat, 6 = helicopter )
Last edited by skidz on Wed Jan 17, 2007 10:13 pm, edited 1 time in total.
Svanrog
Combine Rebel
Combine Rebel
Posts: 1319
Joined: Tue Jul 25, 2006 9:17 pm

Post by Svanrog »

Cool, but what does warp do (in detail).
Btw, why can't you have grenade as primary fire?
skidz
Obsidian Gold
Obsidian Gold
Posts: 3228
Joined: Mon May 29, 2006 6:36 am
Location: Maple Ridge, BC
Contact:

Post by skidz »

Oniyuri wrote:Cool, but what does warp do (in detail).
Btw, why can't you have grenade as primary fire?
Warp is going to be a beam like the egon beam, I haven't finished it yet. Grenade was only setup on the secondary fire, if you want I will include it on the primary as well.
Svanrog
Combine Rebel
Combine Rebel
Posts: 1319
Joined: Tue Jul 25, 2006 9:17 pm

Post by Svanrog »

skidz wrote:
Oniyuri wrote:Cool, but what does warp do (in detail).
Btw, why can't you have grenade as primary fire?
Warp is going to be a beam like the egon beam, I haven't finished it yet. Grenade was only setup on the secondary fire, if you want I will include it on the primary as well.
That could be useful if someone sometime in the future wants to create a pure grenade launcher. Can't you make it possible to enable it to fire normal grenades and maybe rockets as well?
skidz
Obsidian Gold
Obsidian Gold
Posts: 3228
Joined: Mon May 29, 2006 6:36 am
Location: Maple Ridge, BC
Contact:

Post by skidz »

Of course, will update this page when the patch is released.
Svanrog
Combine Rebel
Combine Rebel
Posts: 1319
Joined: Tue Jul 25, 2006 9:17 pm

Post by Svanrog »

:thumbup:
User avatar
Mr. Someguy
npc_hunter
npc_hunter
Posts: 512
Joined: Fri Dec 22, 2006 11:40 pm
Location: Pennsylvania

Post by Mr. Someguy »

Can npcs use scripted weapons?
skidz
Obsidian Gold
Obsidian Gold
Posts: 3228
Joined: Mon May 29, 2006 6:36 am
Location: Maple Ridge, BC
Contact:

Post by skidz »

Not yet, but I assure we are going to make sure they can. It was one of its original purposes.
User avatar
Mr. Someguy
npc_hunter
npc_hunter
Posts: 512
Joined: Fri Dec 22, 2006 11:40 pm
Location: Pennsylvania

Post by Mr. Someguy »

Sweet! then I can give the Hgrunts MP5s, M4s, & M249s. Even if I have to code them myself!
Image
skidz
Obsidian Gold
Obsidian Gold
Posts: 3228
Joined: Mon May 29, 2006 6:36 am
Location: Maple Ridge, BC
Contact:

Post by skidz »

Ill try to get the bullet weapons working for npcs by next patch. Grenades and beams probably wont be ready by then.
Mustang
npc_combinegunship
npc_combinegunship
Posts: 795
Joined: Thu Jul 27, 2006 2:33 am
Location: witty phrase here

Post by Mustang »

Can you give metrocops the ability to use shotguns?
Hyperjag3 wrote:God damnit, I can't take anymore of that fag's shit, banned.
skidz wrote:Your account and IP are banned for life, goodbye.
skidz
Obsidian Gold
Obsidian Gold
Posts: 3228
Joined: Mon May 29, 2006 6:36 am
Location: Maple Ridge, BC
Contact:

Post by skidz »

They cant? :O
Mustang
npc_combinegunship
npc_combinegunship
Posts: 795
Joined: Thu Jul 27, 2006 2:33 am
Location: witty phrase here

Post by Mustang »

Which is why I asked :P
Hyperjag3 wrote:God damnit, I can't take anymore of that fag's shit, banned.
skidz wrote:Your account and IP are banned for life, goodbye.
DaMaN
npc_combinegunship
npc_combinegunship
Posts: 782
Joined: Tue Nov 07, 2006 12:03 am
Location: Parent's Basement
Contact:

Post by DaMaN »

Sweet! Thanks for the tutorial!
Current projects: Return to City 17 and Rising Dead
Also, check out my Blag: http://daman-amappersworld.blogspot.com/
User avatar
Mr. Someguy
npc_hunter
npc_hunter
Posts: 512
Joined: Fri Dec 22, 2006 11:40 pm
Location: Pennsylvania

Post by Mr. Someguy »

How do I set the damage & accuracy? And how do I set primary fire as normal and secondary as autoshotgun?
Post Reply