⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 weapondefs.cpp

📁 Blood 2全套源码
💻 CPP
📖 第 1 页 / 共 5 页
字号:
		IDS_WEAPON_HOWITZER,	// Name ID (resource)
		"Sprites\\howitzer.spr",// flash sprite name
		"Sprites\\howitzer.spr",// alt flash Sprite name
		0.25f,					// Flash duration
		0.25f,					// Flash scale
		{0.0f, 0.0f, 0.0f},		// 3rd person gun offset
		{0.7f, -0.8f, 2.0f},	// Gun Offset
		{0.0f, 0.275f, 1.0f},	// Muzzle Offset
		{0.03f, 0.03f, 0.15f},	// Recoil
		{1.1f, -1.80f, 18.0f},	// Flash position
		0.625f,					// Eject interval
		2.0f,					// View kick
		DFALSE,					// View kick is Cumulative
		DFALSE,					// Animation looping
		DFALSE,					// Alt anim looping
		"interface\\statusbar\\weapons\\howitzer.pcx",		// Icon for status bar
		"interface\\statusbar\\weapons\\howitzer_h.pcx",	// Highlighted icon for status bar
	},
	// Napalm Cannon
	{
		"Models\\Weapons\\NapalmCannon_pv.abc",	// Model
		"Models\\Weapons\\lh_NapalmCannon_pv.abc",	// Model
		"Skins\\Weapons\\C_Napalm_pv_t.dtx",	// Skin
		"Models\\Powerups\\NapalmCannon_pu.abc",	// 3rd person model
		"Skins\\Powerups\\NapalmCannon_pu.dtx",	// 3rd person skin
		WEAP_NAPALMCANNON,		// Type
		TYPE_RIFLE,				// Fire type
		AMMO_FUEL,				// Ammo type
		1,						// Ammo Use
		10,						// Alt Ammo Use
		60.0f,					// Min Damage
		80.0f,					// Max Damage
		30.0f,					// Min Alt damage
		40.0f,					// Max Alt damage
		0.75f,					// Reload time
		1.0f,					// Alt reload time
		{50.0f, 50.0f},			// Spread
		{50.0f, 50.0f},			// Alt Spread
		1250.0f,				// Projectile Velocity
		900.0f,					// Alt Projectile Velocity
		5000.0f,				// Range
		5000.0f,				// Alt Range
		1,						// Shots per fire
		1,						// Alt Shots per fire
		3,						// Strength or Magic required
		0,						// Two-handed Strength or Magic required
		300,					// Damage Radius (projectiles)
		250,					// Alt Damage Radius (projectiles)
		DFALSE,					// Alt fire zoom
		DFALSE,					// Semi-auto
		"Sounds\\Weapons\\napalm\\fire.wav",	// Fire sound
		"Sounds\\Weapons\\napalm\\alt.wav",	// Alt Fire sound
		"",	// Empty weapon sound
		"",	// Alt Empty weapon sound
		"CNapalmProjectile",	// Projectile class
		"CNapalmAltProjectile",	// Alt Projectile class
		175,					// Muzzle Flash radius
		{1.0f, 0.68f, 0.35f},	// Muzzle Flash color
		"Napalm Cannon",		// Name
		IDS_WEAPON_NAPALM,		// Name ID (resource)
		"",						// flash sprite name
		"",						// alt flash Sprite name
		0.25f,					// Flash duration
		0.10f,					// Flash scale
		{0.0f, 0.0f, 0.0f},		// 3rd person gun offset
		{0.9f, -0.8f, 2.1f},	// Gun Offset
		{6.0f, -6.0f, 40.2f},	// Muzzle Offset
		{0.03f, 0.03f, 0.15f},	// Recoil
		{9.0f, -3.0f, 25.0f},	// Flash Offset
		0.625f,					// Eject interval
		0.0f,					// View kick
		DFALSE,					// View kick is Cumulative
		DFALSE,					// Animation looping
		DFALSE,					// Alt anim looping
		"interface\\statusbar\\weapons\\napalm.pcx",		// Icon for status bar
		"interface\\statusbar\\weapons\\napalm_h.pcx",	// Highlighted icon for status bar
	},
	// Singularity
	{
		"Models\\Weapons\\Singularity_pv.abc",	// Model
		"Models\\Weapons\\Singularity_pv.abc",	// Model
		"Skins\\Weapons\\C_Single_pv_t.dtx",	// Skin
		"Models\\Powerups\\Singularity_pu.abc",	// 3rd person model
		"Skins\\Powerups\\Singularity_pu.dtx",	// 3rd person skin
		WEAP_SINGULARITY,			// Type
		TYPE_RIFLE,					// Fire type
		AMMO_BATTERY,				// Ammo type
		50,							// Ammo Use
		50,							// Alt Ammo Use
		5.0f,						// Min Damage
		10.0f,						// Max Damage
		5.0f,						// Min Alt damage
		10.0f,						// Max Alt damage
		5.0f,						// Reload time
		5.0f,						// Alt reload time
		{0.0f, 0.0f},				// Spread
		{0.0f, 0.0f},				// Alt Spread
		0.0f,						// Projectile Velocity
		0.0f,						// Alt Projectile Velocity
		3500.0f,					// Range
		3500.0f,					// Alt Range
		1,							// Shots per fire
		1,							// Alt Shots per fire
		5,							// Strength or Magic required
		0,							// Two-handed Strength or Magic required
		500,						// Damage Radius (projectiles)
		500,						// Alt Damage Radius (projectiles)
		DFALSE,						// Alt fire zoom
		DFALSE,						// Semi-auto
		"Sounds\\Weapons\\singularity\\fire.wav",	// Fire sound
		"Sounds\\Weapons\\singularity\\fire.wav",	// Alt Fire sound
		"",		// Empty weapon sound
		"",		// Alt Empty weapon sound
		"CSingularityProjectile",	// Projectile class
		"CSingularityProjectile",	// Alt Projectile class
		0,							// Muzzle Flash radius
		{0.0f, 0.0f, 0.0f},			// Muzzle Flash color
		"Singularity Cannon",		// Name
		IDS_WEAPON_SINGULARITY,		// Name ID (resource)
		"",							// flash sprite name
		"",							// alt flash Sprite name
		0.10f,						// Flash duration
		0.13f,						// Flash scale
		{0.0f, 0.0f, 0.0f},			// 3rd person gun offset
		{1.4f, -1.9f, 3.4f},		// Gun Offset
		{0.0f, 0.0f, 0.0f},			// Muzzle Offset
		{0.03f, 0.03f, 0.15f},		// Recoil
		{4.25f, -4.25f, 25.0f},		// Flash position
		0.625f,						// Eject interval
		0.2f,						// View kick
		DFALSE,						// View kick is Cumulative
		DFALSE,						// Animation looping
		DFALSE,						// Alt anim looping
		"interface\\statusbar\\weapons\\singularity.pcx",		// Icon for status bar
		"interface\\statusbar\\weapons\\singularity_h.pcx",	// Highlighted icon for status bar
	},	
	// M16 Assault Rifle
	{
		"Models\\Weapons\\M16_pv.abc",	// Model
		"Models\\Weapons\\lh_M16_pv.abc",	// Model
		"Skins\\Weapons\\C_M16_pv_t.dtx",	// Skin
		"Models\\Powerups\\M16_pu.abc",	// 3rd person model
		"Skins\\Powerups\\M16_pu.dtx",	// 3rd person skin
		WEAP_ASSAULTRIFLE,			// Type
		TYPE_AUTORIFLE,				// Fire type
		AMMO_BULLET,				// Ammo type
		1,							// Ammo Use
		5,							// Alt Ammo Use
		10.0f,						// Min Damage
		16.0f,						// Max Damage
		100.0f,						// Min Alt damage
		140.0f,						// Max Alt damage
		0.1f,						// Reload time
		0.0f,						// Alt reload time
		{75.0f, 25.0f},				// Spread
		{50.0f, 50.0f},				// Alt Spread
		0.0f,						// Projectile Velocity
		1500.0f,					// Alt Projectile Velocity
		3500.0f,					// Range
		400.0f,						// Alt Range
		1,							// Shots per fire
		1,							// Alt Shots per fire
		3,							// Strength or Magic required
		0,							// Two-handed Strength or Magic required
		0,							// Damage Radius (projectiles)
		200,						// Alt Damage Radius (projectiles)
		DFALSE,						// Alt fire zoom
		DFALSE,						// Semi-auto
		"Sounds\\Weapons\\assault\\fire.wav",	// Fire sound
		"Sounds\\Weapons\\assault\\alt.wav",	// Alt Fire sound
		"",	// Empty weapon sound
		"",	// Alt Empty weapon sound
		NULL,						// Projectile class
		"CGrenade",					// Alt Projectile class
		100,						// Muzzle Flash radius
		{1.0f, 0.68f, 0.35f},		// Muzzle Flash color
		"M16 Assault Rifle",		// Name
		IDS_WEAPON_M16,				// Name ID (resource)
		"Sprites\\m16flare.spr",	// flash sprite name
		"Sprites\\m16altflare.spr",	// alt flash Sprite name
		0.1f,						// Flash duration
		0.125f,						// Flash scale
		{0.0f, 0.0f, 0.0f},			// 3rd person gun offset
		{0.7f, -0.9f, 1.7f},		// Gun Offset
		{0.0f, 0.275f, 3.0f},		// Muzzle Offset
		{0.03f, 0.03f, 0.15f},		// Recoil
		{5.25f, -5.8f, 30.0f},		// Flash position
		0.625f,						// Eject interval
		0.5f,						// View kick
		DFALSE,						// View kick is Cumulative
		DTRUE,						// Animation looping
		DFALSE,						// Alt anim looping
		"interface\\statusbar\\weapons\\m16.pcx",		// Icon for status bar
		"interface\\statusbar\\weapons\\m16_h.pcx",	// Highlighted icon for status bar
	},
	// Bug Spray Canister
	{
		"Models\\Weapons\\BugSpray_pv.abc",		// Model
		"Models\\Weapons\\BugSpray_pv.abc",		// Model
		"Skins\\Weapons\\C_BugSpray_pv_t.dtx",	// Skin
		"Models\\Powerups\\BugSpray_pu.abc",	// 3rd person model
		"Skins\\Powerups\\BugSpray_pu.dtx",		// 3rd person skin
		WEAP_BUGSPRAY,			// Type
		TYPE_AUTORIFLE,			// Fire type
		AMMO_DIEBUGDIE,			// Ammo type
		1,						// Ammo Use
		1,						// Alt Ammo Use
		40.0f,					// Min Damage
		60.0f,					// Max Damage
		60.0f,					// Min Alt damage
		80.0f,					// Max Alt damage
		0.25f,					// Reload time
		1.0f,					// Alt reload time
		{0.0f, 0.0f},			// Spread
		{0.0f, 0.0f},			// Alt Spread
		1500.0f,				// Projectile Velocity
		1500.0f,				// Alt Projectile Velocity
		500.0f,					// Range
		500.0f,					// Alt Range
		1,						// Shots per fire
		1,						// Alt Shots per fire
		2,						// Strength or Magic required
		0,						// Two-handed Strength or Magic required
		0,						// Damage Radius (projectiles)
		0,						// Alt Damage Radius (projectiles)
		DFALSE,					// Alt fire zoom
		DFALSE,					// Semi-auto
		"Sounds\\Weapons\\bugbuster\\fire.wav",	// Fire sound
		"Sounds\\Weapons\\bugbuster\\alt.wav",	// Alt Fire sound
		"",	// Empty weapon sound
		"",	// Alt Empty weapon sound
		"CBugSprayProjectile",	// Projectile class
		"CBugSprayAltProjectile",	// Alt Projectile class
		0,						// Muzzle Flash radius
		{0.0f, 0.0f, 0.0f},		// Muzzle Flash color
		"Bug Spray Canister",	// Name
		IDS_WEAPON_BUGSPRAY,	// Name ID (resource)
		"",						// flash sprite name
		"",						// alt flash Sprite name
		0.25f,					// Flash duration
		0.10f,					// Flash scale
		{0.0f, 0.0f, 0.0f},		// 3rd person gun offset
		{1.5f, -2.1f, 4.0f},	// Gun Offset
		{0.0f, 0.275f, 1.0f},	// Muzzle Offset
		{0.03f, 0.03f, 0.15f},	// Recoil
		{4.5f, -3.5f, 20.0f},	// Flash position
		0.625f,					// Eject interval
		0.0f,					// View kick
		DFALSE,					// View kick is Cumulative
		DFALSE,					// Animation looping
		DTRUE,					// Alt anim looping
		"interface\\statusbar\\weapons\\bugspray.pcx",		// Icon for status bar
		"interface\\statusbar\\weapons\\bugspray_h.pcx",	// Highlighted icon for status bar
	},
	// Minigun
	{
		"Models\\Weapons\\Minigun_pv.abc",	// Model
		"Models\\Weapons\\Minigun_pv.abc",	// Model
		"Skins\\Weapons\\C_Minigun_pv_t.dtx",	// Skin
		"Models\\Powerups\\Minigun_pu.abc",	// 3rd person model
		"Skins\\Powerups\\Minigun_pu.dtx",	// 3rd person skin
		WEAP_MINIGUN,			// Type
		TYPE_AUTORIFLE,			// Fire type
		AMMO_BULLET,			// Ammo type
		1,						// Ammo Use
		1,						// Alt Ammo Use
		8.0f,					// Min Damage
		16.0f,					// Max Damage
		8.0f,					// Min Alt damage
		16.0f,					// Max Alt damage
		0.0666667f,				// Reload time
		0.0666667f,				// Alt Reload time
		{150.0f, 75.0f},		// Spread
		{150.0f, 75.0f},		// Alt Spread
		0.0f,					// Projectile Velocity
		0.0f,					// Alt Projectile Velocity
		3500.0f,				// Range
		3500.0f,				// Alt Range
		4,						// Shots per fire
		4,						// Alt Shots per fire
		5,						// Strength or Magic required
		0,						// Two-handed Strength or Magic required
		0,						// Damage Radius (projectiles)
		0,						// Alt Damage Radius (projectiles)
		DFALSE,					// Alt fire zoom
		DFALSE,					// Semi-auto
		"",						// Fire sound
		"",						// Fire sound
		"",	// Empty weapon sound
		"",	// Alt Empty weapon sound
		NULL,					// Projectile class
		NULL,					// Alt Projectile class
		125,					// Muzzle Flash radius
		{1.0f, 0.68f, 0.35f},	// Muzzle Flash color
		"Vulcan Cannon",		// Name
		IDS_WEAPON_MINIGUN,		// Name ID (resource)
		"Sprites\\minigun.spr",	// flash sprite name
		"Sprites\\minigun.spr",	// alt flash Sprite name
		0.05f,					// Flash duration
		0.225f,					// Flash scale
		{0.0f, 0.0f, 0.0f},		// 3rd person gun offset
		{0.6f, -1.3f, 2.0f},	// Gun Offset
		{0.0f, 0.275f, 1.0f},	// Muzzle Offset
		{0.03f, 0.03f, 0.15f},	// Recoil
		{0.0f, 0.0f, 0.1f},		// Flash position
		0.625f,					// Eject interval
		0.0f,					// View kick
		DFALSE,					// View kick is Cumulative
		DTRUE,					// Animation looping
		DTRUE,					// Alt anim looping
		"interface\\statusbar\\weapons\\minigun.pcx",		// Icon for status bar
		"interface\\statusbar\\weapons\\minigun_h.pcx",	// Highlighted icon for status bar
	},
    // Death-Ray
   	{
		"Models\\Weapons\\DeathRay_pv.abc",		// Model
		"Models\\Weapons\\DeathRay_pv.abc",		// Model
		"Skins\\Weapons\\C_DeathRay_pv_t.dtx",	// Skin
		"Models\\Powerups\\DeathRay_pu.abc",	// 3rd person model
		"Skins\\Powerups\\DeathRay_pu.dtx",		// 3rd person skin
		WEAP_DEATHRAY,			// Type
		TYPE_AUTORIFLE,			// Fire type
		AMMO_BATTERY,			// Ammo type
		1,						// Ammo Use
		2,						// Alt Ammo Use
		50.0f,					// Min Damage
		60.0f,					// Max Damage
		50.0f,					// Min Alt damage
		75.0f,					// Max Alt damage
		0.2f,					// Reload time
		0.05f,					// Alt reload time
		{0.0f, 0.0f},			// Spread
		{0.0f, 0.0f},			// Alt Spread
		0.0f,					// Projectile Velocity
		0.0f,					// Alt Projectile Velocity
		3500.0f,				// Range
		1.0f,					// Alt Range
		1,						// Shots per fire
		1,						// Alt Shots per fire
		3,						// Strength or Magic required
		0,						// Two-handed Strength or Magic required
		0,						// Damage Radius (projectiles)
		0,						// Alt Damage Radius (projectiles)
		DFALSE,					// Alt fire zoom
		DFALSE,					// Semi-auto
		"Sounds\\Weapons\\laser\\fire.wav",	// Fire sound
		"Sounds\\Weapons\\laser\\alt.wav",	// Alt Fire sound
		"",	// Empty weapon sound
		"",	// Alt Empty weapon sound
		"CDeathRayProjectile",	// Projectile class
		DNULL,					// Alt Projectile class
		100,					// Muzzle Flash radius
		{0.0f, 1.0f, 0.0f},		// Muzzle Flash color
		"Cabalco Death-Ray",	// Name
		IDS_WEAPON_DEATHRAY,	// Name ID (resource)
		"Sprites\\laser.spr",	// flash sprite name
		"Sprites\\laser.spr",	// alt flash Sprite name

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -