Jump to content

A20 - Glowing Arrows Mod (details inside)


Recommended Posts

The goal: Glowing arrows to be able to see them/find them easier at nighttime, etc

 

The best solution thus far: Apply the radiated effect to the arrows, allowing them to glow green

 

What we have so far: I have been able to apply the radiated effect to arrows as a sticky, but ONLY when the mesh is changed to the flaming arrow mesh, it won't apply under any other arrow (stone, iron, steel) and giving stone arrows the flaming arrow mesh isn't quite what we're after.

 

I am aware that there is an A19 modlet for this, but it doesn't work out of the box on A20

 

So far I have briefly worked with Khaine (darkness falls), Subquake (Undead Legacy), Guppy (the man himself!) and a few others, none of us have figured a way to get this working yet.

 

Can you? Ideas, suggestions and XML welcome.

 

This is a challenge, if possible at all.

Link to comment
Share on other sites

Have you tried using a nav_object? It won't apply the radiated effect but it will make arrows easier to find. That's what the spear uses.

 

You would add something like this to arrows:

<property name="NavObject" value="arrow"/>

 

Then create an "arrow" nav_object_class:

 

<nav_object_class name="arrow">
    <property name="requirement_type" value="Tracking" />

    <map_settings>
        <property name="sprite_name" value="ui_game_symbol_map_player_arrow"/>
        <property name="min_distance" value="0"/>
        <property name="max_distance" value="-1"/>
        <property name="color" value="255,255,0,255"/>
        <property name="has_pulse" value="true"/>
    </map_settings>

    <compass_settings>
        <property name="sprite_name" value="ui_game_symbol_map_player_arrow"/>
        <property name="min_distance" value="0"/>
        <property name="max_distance" value="1024"/>
        <property name="color" value="255,255,0,255"/>
        <property name="has_pulse" value="true"/>
        <property name="icon_clamped" value="false" />
    </compass_settings>

    <onscreen_settings>
        <property name="sprite_name" value="ui_game_symbol_map_player_arrow"/>
        <property name="min_distance" value="0"/>
        <property name="max_distance" value="50"/>
        <property name="color" value="255,255,0,255"/>
        <property name="has_pulse" value="true"/>
        <property name="text_type" value="Distance"/>
    </onscreen_settings>
</nav_object_class>

 

I haven't tried it myself, but in theory it should work.

 

I know it isn't exactly what you're looking for, but it's all I could think of.

 

EDIT: It looks like @omegaflames had the same idea and couldn't get it to work. (He posted something that I didn't see before replying.) So maybe that's a dead end.

Edited by khzmusik (see edit history)
Link to comment
Share on other sites

10 hours ago, khzmusik said:

Have you tried using a nav_object? It won't apply the radiated effect but it will make arrows easier to find. That's what the spear uses.

 

You would add something like this to arrows:

<property name="NavObject" value="arrow"/>

 

Then create an "arrow" nav_object_class:

 

<nav_object_class name="arrow">
    <property name="requirement_type" value="Tracking" />

    <map_settings>
        <property name="sprite_name" value="ui_game_symbol_map_player_arrow"/>
        <property name="min_distance" value="0"/>
        <property name="max_distance" value="-1"/>
        <property name="color" value="255,255,0,255"/>
        <property name="has_pulse" value="true"/>
    </map_settings>

    <compass_settings>
        <property name="sprite_name" value="ui_game_symbol_map_player_arrow"/>
        <property name="min_distance" value="0"/>
        <property name="max_distance" value="1024"/>
        <property name="color" value="255,255,0,255"/>
        <property name="has_pulse" value="true"/>
        <property name="icon_clamped" value="false" />
    </compass_settings>

    <onscreen_settings>
        <property name="sprite_name" value="ui_game_symbol_map_player_arrow"/>
        <property name="min_distance" value="0"/>
        <property name="max_distance" value="50"/>
        <property name="color" value="255,255,0,255"/>
        <property name="has_pulse" value="true"/>
        <property name="text_type" value="Distance"/>
    </onscreen_settings>
</nav_object_class>

 

I haven't tried it myself, but in theory it should work.

 

I know it isn't exactly what you're looking for, but it's all I could think of.

 

EDIT: It looks like @omegaflames had the same idea and couldn't get it to work. (He posted something that I didn't see before replying.) So maybe that's a dead end.

 

We had also considered that and gave it a go briefly, but couldn't get it to work. We were using the sticky method however, I'll give yours a try and see how that goes and will let you know

Link to comment
Share on other sites

On 6/24/2022 at 11:08 PM, khzmusik said:

Have you tried using a nav_object? It won't apply the radiated effect but it will make arrows easier to find. That's what the spear uses.

 

You would add something like this to arrows:

<property name="NavObject" value="arrow"/>

 

Then create an "arrow" nav_object_class:

 

<nav_object_class name="arrow">
    <property name="requirement_type" value="Tracking" />

    <map_settings>
        <property name="sprite_name" value="ui_game_symbol_map_player_arrow"/>
        <property name="min_distance" value="0"/>
        <property name="max_distance" value="-1"/>
        <property name="color" value="255,255,0,255"/>
        <property name="has_pulse" value="true"/>
    </map_settings>

    <compass_settings>
        <property name="sprite_name" value="ui_game_symbol_map_player_arrow"/>
        <property name="min_distance" value="0"/>
        <property name="max_distance" value="1024"/>
        <property name="color" value="255,255,0,255"/>
        <property name="has_pulse" value="true"/>
        <property name="icon_clamped" value="false" />
    </compass_settings>

    <onscreen_settings>
        <property name="sprite_name" value="ui_game_symbol_map_player_arrow"/>
        <property name="min_distance" value="0"/>
        <property name="max_distance" value="50"/>
        <property name="color" value="255,255,0,255"/>
        <property name="has_pulse" value="true"/>
        <property name="text_type" value="Distance"/>
    </onscreen_settings>
</nav_object_class>

 

I haven't tried it myself, but in theory it should work.

 

I know it isn't exactly what you're looking for, but it's all I could think of.

 

EDIT: It looks like @omegaflames had the same idea and couldn't get it to work. (He posted something that I didn't see before replying.) So maybe that's a dead end.

Yeah I tried quite a few things that all ended up failing and I have no idea as to why they didn't work. Ultimately I just used the flaming arrows graphics for all the other arrows as that was the only thing I ever got to consistently work.

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...