DoD, need a helping hand with faking a death message
hey people, i need some help with faking a death message,
i tried it, but it always shows the "splash" like suicide instead of the gun (garand in my case.) so i would be really glad if someone could help me out here. here's the code part: Code:
i already tried "xmod_get_wpnlogname" instead, but it doesn't work either. thanks for your help! |
Lmao I see no problem?
|
FireStorm, kill someone normally with the gun and look in the console, how it prints in there is what it bases the sprite icon off. Sometimes I have seen when making custom death messages it cuts off the first letter. Check the console when a death message is made by your plugin and make sure it matches the real one.
|
it always says
[RST] FireStorm killed PlayerXYZ with "world", so something is wrong there :wink: |
Quote:
also you are not blocking the death message. I'll tweak up your code later tonight if I remeber. |
it says:
[RST] FireStorm killed PlayerXY with "garand" and shows the icon for the garand rifle when a player is killed without "UberGarand Mode". thanks for your help, looking forward to that :) |
message_begin(MSG_ALL,get_user_msgid("DeathMs g"),{0,0,0},0)
write_byte( killer ) write_byte( victim ) write_byte( wpnindex ) message_end() It is now in engine_stock.inc file. :!: ! Warning ! :!: Weapon index returned from DoDX module may be different for weapons with id > 31 as they even are different in DoD 1.0 - DoD 1.3 . I think I will add a stock function to correct this issue. |
Quote:
thank's SidLuke, you're (like always) the man, works like a charme, so a beta of my "DoD UberGarand" plugin is finished :D |
| All times are GMT -4. The time now is 17:13. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.