04-13-2015, 08:05 AM
(This post was last modified: 04-13-2015, 01:21 PM by Penguinum-tea.)
Hello. Another noobish question about entities and QuakeC.
I'm trying to modify func_clientwall for my needs. I need it to be moved to another location when activated by trigger. At first I've tried to change origin of this entity somewhere in its code, without using triggers. For example, in client/wall.qc:
OK, wall was moved when the game was started, but you still can't go through place where it was placed. What can be wrong here?
I'm trying to modify func_clientwall for my needs. I need it to be moved to another location when activated by trigger. At first I've tried to change origin of this entity somewhere in its code, without using triggers. For example, in client/wall.qc:
Code:
if(f & 2)
{
self.origin_x = ReadCoord();
self.origin_y = ReadCoord();
self.origin_z = ReadCoord();
setorigin(self, self.origin);
// Added this
vector neworigin = self.origin;
neworigin_x = self.origin_x + 100;
setorigin(self, neworigin);
}