Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

I need some help with zscript

Recommended Posts

I think I remember seeing on the ZDoom wiki that you can change already existing actors with zscript (or maybe decorate) although I forgot where it was and how you do it.


I would like to know if anyone may have the link to the page or could say how to do it. :)

Share this post

Link to post
9 hours ago, inkoalawetrust said:

I looked through and saw the replace thing in one of the examples which was what I was looking for. Thank you :)




I did some more testing with it and it doesn't seem to replace weapons that I start with. For example I am trying to make the pistol have an alt fire mode where it shoots a three round burst (which already works), however in order to get that pistol I have to spawn it via the command bar. Do you have to do something else to change the starting pistol?

Edited by OnionTaco22 : Another small problem

Share this post

Link to post

You need to either create a new inherited player class like so:

Class MyPlayer : DoomPlayer




               Player.StartItem "MyPistol";
               Player.StartItem "Clip", 75;




and in MAPINFO




       PlayerClasses = "MyPlayer" 



Or you can use a script/event handler that takes away the old weapon from player and gives him the new one when he enters the map.

Share this post

Link to post

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