Search found 20 matches
- 2004-12-24, 18:46
- Forum: Cafu Engine Support and Discussion
- Topic: Merry christmas and a happy new year!
- Replies: 13
- Views: 23082
- 2004-12-16, 17:06
- Forum: Cafu Engine Support and Discussion
- Topic: Ca3DE Bones Structure
- Replies: 35
- Views: 55159
- 2004-11-07, 17:35
- Forum: Editing and Mapping with CaWE
- Topic: Hammer 4.0
- Replies: 6
- Views: 14223
- 2004-10-30, 10:41
- Forum: Coding and Scripting
- Topic: Problem with new Entitys in Maps
- Replies: 7
- Views: 14324
- 2004-10-28, 22:06
- Forum: Coding and Scripting
- Topic: Problem with new Entitys in Maps
- Replies: 7
- Views: 14324
- 2004-10-28, 19:34
- Forum: Coding and Scripting
- Topic: Problem with new Entitys in Maps
- Replies: 7
- Views: 14324
Problem with new Entitys in Maps
I wrote a class EntTeamSpawnT which should be Spawns that are only can be used by the right team In Deatmatch.cpp CreateBaseEntityFromMapFile() i wrote if (strcmp(MapFileName, "TeamSpawn_Red" )==0) return new EntTeamSpawnT (TYPEID_TEAMSPAWN , ID, MapFileID, Team_Red, EF, Origin); if (strcmp(MapFileN...
- 2004-10-28, 16:15
- Forum: Coding and Scripting
- Topic: Sycronisation in EntHumanPlayer between Server an Client
- Replies: 5
- Views: 11898
- 2004-10-27, 22:29
- Forum: Coding and Scripting
- Topic: Sycronisation in EntHumanPlayer between Server an Client
- Replies: 5
- Views: 11898
- 2004-10-27, 22:08
- Forum: Coding and Scripting
- Topic: Sycronisation in EntHumanPlayer between Server an Client
- Replies: 5
- Views: 11898
Hmm, i think it was because i wrote Injured between to other Var in EntityStateT and not as last Var, so there were some complications with the Constructor and Copy Constructor I put Injured as last Var in EntityStateT (after Events), but now, Ca3D returns a error. So, it isnt possible to change Ent...
- 2004-10-27, 21:57
- Forum: Coding and Scripting
- Topic: Sycronisation in EntHumanPlayer between Server an Client
- Replies: 5
- Views: 11898
Sycronisation in EntHumanPlayer between Server an Client
I want to code a feature that when you hit, you are injured, and you will lost live continuely. So i add a member variable to EntHumanPlayerT Injured, which is set to true in TakeDamage(), and if in PostDraw(), if true, should display the Text "Injured". But this doesnt work, "Injured" will never be...
- 2004-10-22, 11:21
- Forum: Coding and Scripting
- Topic: New Keys - Which Bits
- Replies: 3
- Views: 8851
- 2004-10-20, 14:57
- Forum: Coding and Scripting
- Topic: Problem with new Functions of EntHumanPlayerT
- Replies: 4
- Views: 10534
So I write BaseEntityT* HitEntity = EngineFunctions->GetBaseEntityByID(EngineFunctions->Ca3DEWorldHandle, HitEntityID); ((EntCompanyBotT*)HitEntity)->TakeHeal(); Edit: I include "CompanyBot.hpp" and it works fine :) Edit: Hmm, with EntHumanPlayerT instead of EntCompanyBotT it works fine BaseEntityT*...
- 2004-10-20, 13:23
- Forum: Coding and Scripting
- Topic: Problem with new Functions of EntHumanPlayerT
- Replies: 4
- Views: 10534
Problem with new Functions of EntHumanPlayerT
I want to be able to heal a player, so i write a member Function of EntHumanPlayerT TakeHeal() that gives the Player +20 Health So in Think() I write a Code that starts a trace, get an EntityID if the crosshair is on a player i would heal. So now the problem With GetBaseEntityByID i get just a BaseE...
- 2004-10-20, 11:06
- Forum: Coding and Scripting
- Topic: New Keys - Which Bits
- Replies: 3
- Views: 8851
New Keys - Which Bits
I want to define more keys
I know there are defined in PlayerCommands.hpp, but which Keys are which Bits
Could anyone help me
I know there are defined in PlayerCommands.hpp, but which Keys are which Bits
Could anyone help me
- 2004-10-20, 09:52
- Forum: Coding and Scripting
- Topic: Key Inputs
- Replies: 6
- Views: 13035
I got it :D The code is called twice because it is called on Client and on Server Side So you have to add ThinkingOnServerSide as arguement in the if clauses and it works if ((Keys & PCK_Walk) && (Enable_Key_Walk) && (ThinkingOnServerSide)) { if (Class == Class_Medic) { Enable_Key_Walk = 0; EngineFu...