OpenBF1942-Plus
Refractor 1, rebuilt from scratch
Loading...
Searching...
No Matches
obf::WeaponDef Struct Reference

#include <physics.h>

Public Attributes

std::string name
float velocity = 0
float interval = 0.1f
float ttl = 10
int material = 0
int material2 = -1
int mag_size = 0
int mags = 0
float reload = 0
bool fire_once = false
int ammo_type = 0
float radius = 0
std::string end_effect
std::string projectile
bool bounce = false
float near = 0
bool heals = false
std::string muzzle
float muzzle_pos [3] = {}

Member Data Documentation

◆ ammo_type

int obf::WeaponDef::ammo_type = 0

◆ bounce

bool obf::WeaponDef::bounce = false

◆ end_effect

std::string obf::WeaponDef::end_effect

◆ fire_once

bool obf::WeaponDef::fire_once = false

◆ heals

bool obf::WeaponDef::heals = false

◆ interval

float obf::WeaponDef::interval = 0.1f

◆ mag_size

int obf::WeaponDef::mag_size = 0

◆ mags

int obf::WeaponDef::mags = 0

◆ material

int obf::WeaponDef::material = 0

◆ material2

int obf::WeaponDef::material2 = -1

◆ muzzle

std::string obf::WeaponDef::muzzle

◆ muzzle_pos

float obf::WeaponDef::muzzle_pos[3] = {}

◆ name

std::string obf::WeaponDef::name

◆ near

float obf::WeaponDef::near = 0

◆ projectile

std::string obf::WeaponDef::projectile

◆ radius

float obf::WeaponDef::radius = 0

◆ reload

float obf::WeaponDef::reload = 0

◆ ttl

float obf::WeaponDef::ttl = 10

◆ velocity

float obf::WeaponDef::velocity = 0

The documentation for this struct was generated from the following file: