Making console variables apply to a DECORATE actor
- Ultimate Freedoomer
- Topic Author
- Wraith
Less
More
- Posts: 18
8 years 4 months ago #1
by Ultimate Freedoomer
Making console variables apply to a DECORATE actor was created by Ultimate Freedoomer
Hi. You know how, when it comes to modding, you can set a mod-specific custom console variable to automatically apply with that actor? I was wondering if it was possible to do the same trick with cvars BUILT INTO the mod's intended engine, & if so, how to do it? I'm trying to recreate the Probjectile from the alphas. The cvar I'm trying to do this trick with is "linetarget".
Please Log in or Create an account to join the conversation.
- Blue Shadow
- Administrator
Less
More
- Posts: 1129
8 years 4 months ago #2
by Blue Shadow
Replied by Blue Shadow on topic Making console variables apply to a DECORATE actor
I'm not sure I follow, could you elaborate further?
Alos, linetarget is not a CVAR, it's a CCMD (console command) .
Alos, linetarget is not a CVAR, it's a CCMD (console command) .
Please Log in or Create an account to join the conversation.
- Ultimate Freedoomer
- Topic Author
- Wraith
Less
More
- Posts: 18
8 years 3 months ago #3
by Ultimate Freedoomer
Replied by Ultimate Freedoomer on topic Making console variables apply to a DECORATE actor
Basically:
- I know how to make user-defined mod-specific CCMDs/CVARS automatically apply with custom actors (an example I've seen being Complex Doom's legendary addon making a specific music cue play when you encounter a Legendary monster variant)
- I have no idea how to make a CCMD/CVAR built into ZDOOM work in such a way.
Please Log in or Create an account to join the conversation.
- Blue Shadow
- Administrator
Less
More
- Posts: 1129
8 years 3 months ago #4
by Blue Shadow
Replied by Blue Shadow on topic Making console variables apply to a DECORATE actor
Well, you cannot invoke a CCMD automatically. But there is an alternative solution to your problem. With
ACS
, you can get the kind of information the linetarget CCMD provides and print it on the HUD.
Here is simple mod which prints the class name, health and spawn health of the monster under the crosshair, but only if your currently equipped weapon is the plasma rifle.
https://dl.dropboxusercontent.com/s/t98wlrzrgxvycb4/enemyinfo.pk3?dl=0
Here is simple mod which prints the class name, health and spawn health of the monster under the crosshair, but only if your currently equipped weapon is the plasma rifle.
https://dl.dropboxusercontent.com/s/t98wlrzrgxvycb4/enemyinfo.pk3?dl=0
Please Log in or Create an account to join the conversation.
- Ultimate Freedoomer
- Topic Author
- Wraith
Less
More
- Posts: 18
8 years 3 months ago #5
by Ultimate Freedoomer
Replied by Ultimate Freedoomer on topic Making console variables apply to a DECORATE actor
Thanks. Ya know, we really need a default "enemy stats" powerup actor class base in Zdoom.
Please Log in or Create an account to join the conversation.