Game Development Community

Armor class in FPS Example

by QSquid · in Torque Developer Network · 02/23/2007 (3:52 pm) · 1 replies

I have been working with different scripts for a while now and have come upon something that seems odd to me. I am using className="Armor"; for my player class. And then assigning the Armor::onCollision() event to work for some inventory code I am doing. But what is Armor? At first I thought it was a class defined in the engine so I didn't worry about it. I was poking around the engine source code today and could not find any reference of this armor class. Could somone fill me in on how exactly this works?

#1
03/09/2007 (8:38 am)
I'm still working my way through learning Tscript but i think it was created by the creator of the fps starter kit, or a carry-over from the tribes days.

I believe that it was intended to be a way to designate different player "classes".

example: "armor" class can't pick up a "heavy armor" item.

that's my guess anyway. I'm sure someone else can answer better than i.