vbsp-entities-css 0.1.0

VBSP entity definitions for Counter Strike: Source.
Documentation

VBSP Entities For Counter Strike: Source

Latest version License

CSS Entities (Generated)

Generated by vbsp-entities-codegen. Intended for use with the vbsp crate.

Usage:

use vbsp::Bsp;
use vbsp_entities_css::Entity;

let data = std::fs::read("cstrike/maps/de_dust.bsp")?;
let bsp = Bsp::read(&data)?;

for entity in &bsp.entities {
	match entity.parse() {
		// print CT spawn locations
		Ok(Entity::InfoPlayerCounterterrorist(info_player_counterterrorist)) => dbg!(info_player_counterterrorist.origin),
		_ => (),
	}
}