Originally posted by Spike
View Post
Announcement
Collapse
No announcement yet.
Runaway loops
Collapse
X
-
Originally posted by golden_boy View PostI'd need the player_pain() function too.
In my clean qc source, player_pain() doesn't have any arguments at all but this was probably just cleaned up.
Code:.void(entity attacker, float damage) th_pain;
.void() th_pain;
@goldenboy
Is your Qc source cleaned by yourself? I wonder if it is different than mine. Allowed to share?Last edited by PrimalLove; 09-05-2014, 04:00 PM.
Comment
-
Originally posted by PrimalLove View PostThis is the float in defs.qc
Code:.void(entity attacker, float damage) th_pain;
EDIT: Yep. Just confirmed compiling it without those params. Cleaned code. Like I mentioned with Ai_walk, ID code is riddled with extra snippets of code. :/
@goldenboy
Is your Qc source cleaned by yourself? I wonder if it is different than mine. Allowed to share?
https://gitorious.org/quakec-v1-01-clean
It's what I based my game on, too.
Comment
-
Originally posted by golden_boy View PostI practically never use stock id qc code, I recommend cleanQC 1.01 as a reference source these days.
https://gitorious.org/quakec-v1-01-clean
It's what I based my game on, too.
Comment
-
That's useful. Thanks.
@spike: I see from the wiki that fteqcc now supports arrays, but are there any plans for more string support? I didn't see anything about this, but simple concat, substr(), instr(), len() etc would be very useful for formatting text and making things look pretty
-r0t.uk- cOOp - Mapvote - r0t.uk:26001
-r0t.uk- DM - Mapvote - r0t.uk:26000
Comment
-
Not Spike, but these string operations also require engine extensions, not just compiler ones.
You can find them in fteextensions.qc where all the extended builtins are listed (search for strcat etc.)
http://www.triptohell.info/moodles/f...eextensions.qc
So yeah, this stuff would work in FTE and Darkplaces. Not sure what other engines support these extensions.
Comment
Comment